Tip 1 : Practice atleast 400 DSA questions and the questions should be a good balance of easy medium and hard questions.
Tip 2 : If you have time of Competitive Programming please do it , Competitive Programming always helps people to clear OA and if you have a good hand on experience in competitive programming then doing DSA will be lot more easier for you.
Tip 3 : Have a basic understanding of system design concepts , it always helps people to explain projects or explain database tradeoff questions in terms of system design concepts.
Tip 4 : Spend a good amount of time creating good connections on Linkedin because at the end you are going to get Job Links and referrals from Linkedin.
Tip 1 : Keep your resume short and single column
Tip 2 : Keep your best achievements and best projects in the resume , don't bloat your resume with unnecessary data.
The round was having three coding questions.
All questions were extremely easy and were solved in around 20 minutes.



Two nodes of a binary tree are cousins if they have the same depth or level, but have different parents.
No two nodes in the given binary tree will have the same data values.

This can be solved by running simple BFS on the binary tree for calculating level of all nodes and then finding all nodes which are having same level as given node.



If the matrix is:
10 20 30 40
15 20 35 42
27 29 37 46
32 33 38 49
The output will be the elements of matrix in sorted order:
10 15 20 20 27 29 30 32 33 35 37 38 40 42 46 49
Can you solve this in O((N ^ 2) * log(N)) time and O(N) space complexity?



The Interview started with introduction of interviewer and followed by intro of me.
Then Interviwer said that i will be asked two questions and i should solve one completely and for second problem i should atleast explain logic to clear the round.



The maximum sum is calculated by using the following rules:-
For every ‘i’ in range 0...N:
Max_sum += abs(arr1[i] - arr2[i])
And If i < N-1:
Max_sum += abs(arr1[i+1] - arr2[i])
Input:
n = 4
arr1[] = {2,3,4,1}
arr2[] = {2,4,1,1}
Ouput: 11
Explanation:
Here we will swap arr1[2] and arr2[2]. (Swap)
arr1[] = {2,3,1,1}
arr2[] = {2,4,4,1}
for this type of arrangement, we have our maximum Define Sum.
Sum = abs(arr1[0]-arr2[0]) + abs(arr1[1]-arr2[0]) + abs(arr1[1]-arr2[1]) + abs(arr1[2]-arr2[1]) ....
Sum = abs(2-2) + abs(3-2) + abs(3-4) + abs(1-4) + abs(1-4) + abs(1-4) + abs(1-1) = 11



This round was scheduled as a follow up round after elimination DSA round and this was also final round.
The interviewer started the inteview by resume discussion he discussed almost everything i had on my resume (Projects , Open Source contributions and Subject basics).
And the last and the best question he asked was a estimation question this was by far the best part of my paytm interview experience.
He asked my to estimate the number of Auto and Bus will be running in my Home city.
We had a very long discussion over this i gave hime multiple solutions and multiple appraoches to solidify the estimates.
Since there is not any fix number for this estimations so he was just testing my approach and thinking ability.
I just approached the problem by categorizing peoples who tarvel in these vehicals (Student , Office workers , Tourists etc)
Then based of estimated capacity of per vehical (Auto 4 person , Bus 40 Person) i suggested him some numbers.
Finally i got offer from Paytm for SDE.
I will say except from this last estimation problem rest everything was quite easy for me.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: