Paytm Interview Experience (Experienced)
Round 1:
Online Coding round
- A document contains dates in dd-MM-YYYY formats from the beginning of time i.e 00-00-0000 along with other texts. You have to find the number of distinct years.
- An array is special if it contains special elements. A special element is an element which can be represented by the sum of two numbers where one number is reverse of other. Like Array is {22, 121} . Here 22 = 11 + 11 and 121 = 92 + 29. Hence both elements are special. The input array is an array of strings. Output number of special elements in the array.
//Write Java code here //Added By Naga Praveen Kumar public class SpecialNumber { public static void main(String[] args) { int [] arr = { 22 , 121 }; printspecialElements(arr); } public static void printspecialElements( int [] arr){ for ( int i= 0 ;i<arr.length;i++){ if (arr[i]% 11 == 0 ){ System.out.println(arr[i]); } } } } |
Round 2:
F2F
- About my project in last company
- Transaction Isolation levels
- Connection pools in java
- How to maintain idempotency in case of failure of REST API.
- Give an example where you used transactions.
- Aerospike and Redis differences and advantages (Written in my resume).
- The average response time of Redis.
- Mysql locking
Round 3:
F2F
- Introduction and projects
- Find two elements in BST who sum is equal to a given number.
- Find oldest non-repeating character in the stream of characters.
- Was asked to implement the above question in case of multi-threaded environment.
- Singleton class and use cases and creation techniques.
- Garbage collection working in java.
Round 4:
F2F
- In-depth discussion of my work in last company.
- Design twitter along with use cases.
Thank you w3wiki for helping me with my preparations. ?