Tip 1: Focus on the basics first.
Tip 2: Practice by participating in coding contests for timed interviews.
Tip 3: Get hands-on experience with some personal projects.
Tip 1: Keep track of your ATS score.
Tip 2: Only mention the things that you truly know.
The interviewer asked me a standard coding medium-level problem. He was very supportive.



Can you solve each query in O(logN) ?
One needs to find the peak of the rotated array and then identify on which side the target lies. Apply binary search to that part.
What are ACID properties? (Learn)
Tip 1: Should know transactions.
Tip 2: Should know the full form.
Tip 3: Should know what each term stands for.
This round heavily focused on DSA, containing two coding questions: one medium and one hard.



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



Given students' ratings : [5, 8, 1, 5, 9, 4].
He gives the students candy in the following minimal amounts : [1, 2, 1, 2, 3, 1]. He must buy a minimum of 10 candies.
1. If two students having the same grade are standing next to each other, they may receive the same number of candies.
2. Every student must get at least a candy.

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