Tip 1: Prepare DSA well, and I personally recommend Coding Ninjas for interview preparation.
Tip 2: Be confident and relaxed during the interview.
Tip 3: Revise your projects, i.e., how they work and what their functionalities are.
Tip 1: Keep your resume concise, aiming for one page only, and include all the skills you are confident in.
Tip 2: Do not include false information on your resume.
The Assessment consists of 30 MCQs and 2 coding Questions.



As this value might be large, print it modulo 10^9 + 7



For the given binary tree

The level order traversal will be {1,2,3,4,5,6,7}.



1. Get(int num): If the key exists, it will return the value of the key stored. Else, return -1.
2. Put(int key, int value): If the key already exists, update the value of the key. Else add the key-value pair to the cache. If the number of keys is more than the capacity for this operation, delete the least recently key used.
For the following input:
4 2
2 1 4
1 1
1 4
We will initialize an empty LRU cache for the first operation with a maximum capacity of 2.
For the first operation, we need to add a key-value pair (1,4) to the cache.
For the second operation, we need to return the value stored for key 1, i.e., 4
For the third operation, we need to return -1, as we don't have any key 4 in the cache.
So, the final output will be:
4 -1

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?