Tip 1 : For Goldman Sachs, puzzles are a must.
Tip 2 : Competitive Programming is also necessary for most job interviews.
Tip 3 : Practise mock interviews among your friends.
Tip 1 : Make your resume crisp and clear.
Tip 2 : Have at least two projects on your resume.
Tip 3 : You can take the help of someone to verify any grammatical mistakes and the formation of sentences.
The round was divided into 5 parts.
1st part - 2 easy coding questions
2nd part - 7 MCQs
3rd part - 8 MCQs
4th part - 1 hard coding question
5th part - 2 ethical based questions



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.






1. Coordinates of the cells are given in 0-based indexing.
2. You can move in 4 directions (Up, Down, Left, Right) from a cell.
3. The length of the path is the number of 1s lying in the path.
4. The source cell is always filled with 1.
1 0 1
1 1 1
1 1 1
For the given binary matrix and source cell(0,0) and destination cell(0,2). Few valid paths consisting of only 1s are
X 0 X X 0 X
X X X X 1 X
1 1 1 X X X
The length of the shortest path is 5.

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?