Round 1 : Online assessment (via HackerRank)
- Flatten nested linked list
- https://leetcode.com/discuss/interview-question/334671/GOLDMAN-SACKS-JULY-2019-HACKERRANK-2
Round 2: (60 mins)
- DP based question to find number of forests in matrix.
- You are given a sorted array of integers A and an integer K. You can take some portion of K and add it to any integer in A. You can repeat this process unitl K is exhausted.
The final aim is to maximize the number of integers that are same in the array A.
Round 3: (60 mins)
- Phone keypad - Given a number print possible outcomes on a alpha-numeric keypad. Eg. 27 -> ap, aq, ar, as, bp, bq etc.
- https://leetcode.com/problems/merge-intervals/
- Questions on internal working of hash map
Round 4: (60 mins)
Design a snake and ladder game.
Write a method to find minimum steps required to reach a position.
Round 5: (60 mins)
- Rearrange array in zig-zag fashion such that elements on both sides of every element is either smaller or larger than the element.
- Given a string S and a string T, count the number of distinct subsequences of S which equals T.
Eg. S = 'banana', T = 'ban'
O/P: 3 [ban], [ba--n], [b--an]
Round 6: (45 mins)
- You are given a sorted array of integers A and an integer K. You can take some portion of K and add it to any integer in A. You can repeat this process unitl K is exhausted.
The final aim is to maximize the number of integers that are same in the array A.
- Some java based questions on design patterns and garbage collection.
Round 7: (Hiring Manager - 30 mins)
- Discussion on projects that I had worked upon.
- Situational based questions to deal with a technical challenge. Steps taken and reasoning for those steps.
Result : Offer