Tip 1: Make sure your computer science fundamentals are crystal clear.
Tip 2: You should know the time complexity of the code you write and understand the internal implementation of the data structures you use while coding.
Tip 3: Be well-versed in everything you mention on your resume.
Tip 4: Practice solving a lot of programming problems and participate in competitive programming contests.
Tip 1: Be honest about what you write in your resume.
Tip 2: Include at least two projects.
Tip 3: Maintain a precise, self-explanatory one-page resume.
Tip 4: Add only technical achievements.
The interviewer immediately shared a document with two coding questions and gave me some time to think, followed by a discussion.






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
The interview was primarily focused on development skills and system design (which I was not prepared for). The interviewer also asked one coding question.
Design a Restaurant Management System.
Tip 1: Prepare for System Design questions.
Tip 2: Prepare for previously asked questions.



For the given arr[ ] = { 1, 2, 3, 1}
After 0 rotation arr[ ] = { 1, 2, 3, 1} the sum is = (0 *1 + 1 * 2 + 2 * 3 + 3 * 1) = 11.
After 1 rotation arr[ ] = { 1, 1, 2, 3} the sum is = (0 *1 + 1 * 1 + 2 * 2 + 3 * 3) = 14.
After 2 rotation arr[ ] = { 3, 1, 1, 2} the sum is = (0 *3 + 1 * 1 + 2 * 1 + 3 * 2) = 9.
After 3 rotation arr[ ] = { 2, 3, 1, 1} the sum is = (0 *2 + 1 * 3 + 2 * 1 + 3 * 1) = 8.
So the maximum sum is 14 when arr[ ] = { 1, 1, 2, 3}.

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?