Goldman Sachs interview experience Real time questions & tips from candidates to crack your interview

Associate Engineer

Goldman Sachs
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data structures and Algorithms, Java(oops language), SQL, LLD, HLD.
Tip
Tip

Tip 1 : Practice Leetcode/coding ninjas as much as possible
Tip 2 : Go through Past Interview Experiences
Tip 3 : Focus on your resume

Application process
Where: Other
Eligibility: No
Resume Tip
Resume tip

Tip 1 : Be precise and focus on Quantitative Data
Tip 2 : Mention all the major projects which shows how much you have contributed towards your firm

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date10 May 2022
Coding problem2

1. Strings of Numbers

Hard
45m average time
55% success
0/120
Asked in companies
AppleFacebookUber

You have been given two integers ‘N’ and ‘K’. Consider a set ‘X’ of all possible strings of ‘N’ number of digits such that all strings contain digits only in range 0 to ‘K’ inclusive.

For example, If ‘N’ is 2 and ‘K’ is ‘2’ then the set ‘X’ will be-

‘X’ = { 00, 01, 02, 10, 11, 12, 20, 21, 22 }.

Your task is to find a string of minimum possible length such that it contains all strings from set ‘X as any of its substring.

Note:

If there are more than one possible such strings, then you can output any of them.
Try solving now

2. Find prime numbers

Easy
15m average time
80% success
0/40
Asked in companies
HSBCOptumIBM

You are given a positive integer ‘N’. Your task is to print all prime numbers less than or equal to N.

Note: A prime number is a natural number that is divisible only by 1 and itself. Example - 2, 3, 17, etc.

You can assume that the value of N will always be greater than 1. So, the answer will always exist.

Problem approach

solved using sieve theory of numbers

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date17 May 2022
Coding problem2

1. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
WalmartShareChatAmazon

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Problem approach

1. This is the DFS/BFS related problem. solved using DFS at first.
2. Interviewer was happy with the solution and asked further questions like what if surrounding is land rather than water. How will the solution change.

Try solving now

2. Product of array except self

Easy
26m average time
0/40
Asked in companies
IntuitQualcommFacebook

You have been given an integer array/list (ARR) of size N. You have to return an array/list PRODUCT such that PRODUCT[i] is equal to the product of all the elements of ARR except ARR[i]

 Note :
Each product can cross the integer limits, so we should take modulo of the operation. 

Take MOD = 10^9 + 7 to always stay in the limits.
Follow up :
Can you try solving the problem in O(1) space?
Problem approach

1. solved using 3 arrays to maintain left product, right product, result.
2. Optimised by using just one array and tracking all product values side by side.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date17 May 2022
Coding problem2

1. System Design Question

Design Music Player

Problem approach

Tip 1 : understand the requirements and ask questions to check what exactly one is looking out for.
Tip 2 : Follow the design patterns as much as you can.
Tip 3 : Follow the oops concepts

2. System Design Question

Design Netflix(Recommendation part)

Problem approach

Tip 1 : understand the requirements and ask questions to check what exactly one is looking out for.
Tip 2 : Follow the design patterns as much as you can.
Tip 3 : Follow the oops concepts

04
Round
Medium
Video Call
Duration60 minutes
Interview date18 May 2022
Coding problem1

1. System Design Question

Design a system to get the max profit out of trade where you recommend whether to sell/buy stocks as per the current price .

Problem approach

Tip 1 : Explain data structures which one to use and why.
Tip 2 : Think thorough regarding complexity of data structures
Tip 3 : Follow oops concepts to design classes

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
5 rounds | 8 problems
Interviewed by Goldman Sachs
31595 views
7 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Goldman Sachs
1903 views
0 comments
0 upvotes
company logo
Analyst
3 rounds | 5 problems
Interviewed by Goldman Sachs
8166 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Goldman Sachs
973 views
0 comments
0 upvotes