Tip 1 : Practice at least 100 coding question.
Tip 2 : Mention some good projects on resume.
Tip 3 : Be confident.
Tip 1 : Keep it limited to 1 page. And make sure it's a pdf and not an image.
Tip 2 : Do not put false things on resume.
3 questions had to be solved within 90 minutes. Questions were in story format but basic concept used is the one I mentioned.



The answer could be very large, output answer %(10 ^ 9 + 7).



A majority element is an element that occurs more than floor('N' / 2) times in the array.
used hashmap approach



The Number of elements smaller than 4 on its right side is 2.
The Number of elements smaller than 2 on its right side is 1.
The Number of elements smaller than 1 on its right side is 0.
The Number of elements smaller than 5 on its right side is 0.
Hence the count array is [2,1,0,0]
The interviewer was very interactive. Questions were about System Design and DSA.
Design snake and ladder game (Learn)
Tip 1 : Practice system design
Tip 2 : Ask relevant doubts.



If A = [3, 2, 3], and K = 2.
Then max of [3, 2] = 3 and max of [2, 3] = 3
So, the answer will be [3, 3]
If A = [3, 2, 3, 5, 1, 7] and K = 3.
Then max of [3, 2, 3] = 3
Then max of [2, 3, 5] = 5
Then max of [3, 5, 1] = 5
Then max of [5, 1, 7] = 7
So the answer will be [3, 5, 5, 7]
Can you solve the problem in O(N) time complexity and O(K) space complexity?
Just Slide the window and for duplicates we will use hashmap instead of a hashset.
We will discard any element if its count becomes zero in a window.



You may assume that duplicates do not exist in the given traversals.
For the preorder sequence = [1, 2, 4, 7, 3] and the inorder sequence = [4, 2, 7, 1, 3], we get the following binary tree.

Used queue based approach.
Design Database for hotel booking (Learn)
Tip 1 : Practice system design
Tip 2 : Ask relevant doubts.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?