Tip 1 : Practice 20-25 questions on each type of data structure.
Tip 2 : Be thorough with the recent project on which you are working on in current organisation.
Tip 3 : Be prepared with the technologies that you have mentioned in your resume.
Tip 1: Have at least 1 project on your resume with which you are wholly thorough with.
Tip 2: Mention your coding profile like links of GitHub or LeetCode.



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Two pointer approach



A mapping from Digits to Letters (just like in Nokia 1100) is shown below. Note that 1 does not map to any letter.

FIFO Queue



Using recursion and backtracking



You are given ‘STR’ = “aabcd”. Then our answer will be “dcbaabcd”. We can form a palindrome by adding ‘d’, ‘c’, and ‘b’ in front of ‘STR’.
KMP Algorithm



Do not allocate extra space for another array. You need to do this by modifying the given input array in place with O(1) extra memory.
'n' = 5, 'arr' = [1 2 2 2 3].
The new array will be [1 2 3].
So our answer is 3.
Two pointer approach
In this round, they opened up their code base and asked me to figure out the error and fix it.
That was related to streams in java and exception handling.



If the given grid is this:
[7, 19, 3]
[4, 21, 0]
Then the modified grid will be:
[7, 19, 0]
[0, 0, 0]
Solved using HashSet



The same letter cell should not be used more than once.
For a given word “design” and the given 2D board
[[q’, ‘v’, ‘m’, ‘h’],
[‘d’, ‘e’, ‘s’, ‘i’],
[‘d’, ‘g’, ‘f’, ‘g’],
[‘e’, ‘c’, ‘p’, ‘n’]]
The word design can be formed by sequentially adjacent cells as shown by the highlighted color in the 2nd row and last column.

Solved using DFS and backtracking
1. Why have you used this tech stack?
It revolved around recent projects and technologies used into it.
Why you are leaving the current organisation?
Why do you want to join Goldman Sachs only?
Discussion regarding compensation and benefits.

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?