Tip 1 : Don't lie over your resume
Tip 2 : Practice regularly
Tip 3 : Revision is the key
Tip 1 : Right only correct info, Don't fake it
Tip 2 : Keep it precise and concise.
There were 3 coding questions of various difficulty level



1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.
2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).
2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.



If the given array is [1,2,3] then the answer would be 2. One of the ways to make all the elements of the given array equal is by adding 1 to the array element with value 1 and subtracting 1 from the array element with value 3. So that final array would become [2,2,2].



Asked various coding questions and their implementations





Input: [1,2,3,4,5]
Output: [5,4,3,2,1]




Each pair should be sorted i.e the first value should be less than or equals to the second value.
Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
HR was very friendly
How quickly do you adapt to new technology?
What software packages are you familiar with?
On a scale of 1 to 10 how would you rate yourself as a leader?

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?