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

Analyst

Goldman Sachs
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
Before applying for this role, I was working at Airtel and Amdocs as a software developer.I got a call from recruiter regarding job opportunity in java developer for ops team.I always wanted to work in fintech company like Goldman Sachs so,i was preparing for it since long.I used to read interview archives on glassdoor and geeksforgeeks of goldman sachs. I went through previous interview experiences and started giving mock interviews so as to master coding skills once again.
Application story
I updated my profile on naukri portal and recruiter shortlisted my profile and contacted me regarding job opportunity.I was asked regarding interview slot and expected ctc.Then he sent me interview invite.
Why selected/rejected for the role?
i rejected because i believe i was not able to explain my solution to the interviewer in the best possible way as i can and interviewer seems a little bit of unsatisfied.
Preparation
Duration: 4 Months
Topics: Data Structures and Algorithms, OOPS, JAVA, MYSQL, SYSTEM DESIGN
Tip
Tip

Tip 1 : Practice DP based questions as much as you can. Also, be confident during the interview about your solution. For practice, you can prefer Coding Ninjas and Geeks For Geeks.
Tip 2 : Try to give each and every question there on leetcode and try to upsolve them as well.
Tip 3 : quality matters but quantity also matters, so try to solve as many questions as you can.

Application process
Where: Naukri
Eligibility: no
Resume Tip
Resume tip

Tip 1 : you should have at least 2 projects done completely by yourself so that you can handle any query asked by interviewer.
Tip 2 : try to mention all your achievements related to competitive programming.
Keep it short. Mention the academic and professional projects you've done. Add your educational details properly with percentage or CGPA obtained.

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date8 Mar 2023
Coding problem2

It was a coderpad round of which link is shared.2 problems were given to me .One was of trapping snow in mountains which is similar to trapping rain water.2nd question was run length encoding.Interview timings were 4 pm.Interviewer was very polite and helpful.

1. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
AccenturePayPalHexaware Technologies

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Try solving now

2. Encode and Decode

Easy
15m average time
85% success
0/40
Asked in companies
AmazonAccentureMicrosoft

Tiny URL is an online URL shortening service, where you get a short version of a given URL as a substitute.

Your task is to design encode the original URL “S”, into a tiny URL and decode the previously encoded tiny URL into the original URL.

Example:

S= “https://youtu.be/dQw4w9WgXcQ”, can be encoded to TinyUrl “http://tinyurl.com/abcdef”, then in future queries “http://tinyurl.com/abcdef”  can be decoded into “https://youtu.be/dQw4w9WgXcQ”

Note:

The URL given to you for decoding will always be one of the URLs you have already returned after encoding in the past.

The encoded URL should strictly be of the format “http://tinyurl.com/abcdef”, where instead of “abcdef” you can have any alphanumeric code of length 6.
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date16 Mar 2023
Coding problem1

one DSA question was asked.Few theory questions were also asked related to java.Questions were regarding immutability(how to create custom immutable class),oops concepts,singleton design pattern,comparator ,comparable

1. Longest Mountain Subarray

Easy
10m average time
90% success
0/40
Asked in companies
MicrosoftGoldman SachsShareChat

You are given an array of 'N' integers denoting the heights of the mountains. You need to find the length of the longest subarray which has the shape of a mountain.

A mountain subarray is defined as a subarray which consists of elements that are initially in ascending order until a peak element is reached and beyond the peak element all other elements of the subarray are in decreasing order.

Example:
If the given array is: [1 3 1 4]. The longest mountain subarray would be 3. This is because the longest mountain is  [1 3 1] having length 3.
Try solving now
03
Round
Hard
Video Call
Duration60 Minutes
Interview date27 Mar 2023
Coding problem2

This round was of 1 hour,2 dsa questions were asked,there were total 3 interviewers.

1. Pair Sum

Easy
15m average time
90% success
0/40
Asked in companies
GrofersOlaJP Morgan

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to return the list of all pairs of elements such that each sum of elements of each pair equals 'S'.

Note:

Each pair should be sorted i.e the first value should be less than or equals to the second value. 

Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
Try solving now

2. Virus Detection

Moderate
0/80
Asked in companies
UberShareChatGoldman Sachs

In a database, each stored file is named by a string of size ‘N’. But due to some error in the security, some of the files got infected by a virus. Given two strings ‘A’ and ‘B’ and a virus string ‘C’, Your task is to tell the number of files that are not affected by the virus. An unaffected file follows the given conditions:

The name of the file should be greater than or equal to the string ‘A’.
The name of the file should be less than or equal to string ‘B’.
The name of the file should not contain the virus string as a substring ‘C’.
Since the answer can be very large, print answer % (10^9 + 7).
For Example
If N=2 and string ‘A’ = “bc” and string ‘B’ = “bm” and virus string ‘C’ = ”g”.So the files that are not affected are “bc”, “bd”, “be”, “bf”, “bh”, “bi”, “bj”, “bk”, “bl”.
Try solving now

Here's your problem of the day

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

Skill covered: Programming

What is 3 + 2 * 4 based on operator precedence?

Choose another skill to practice
Similar interview experiences
company logo
Analyst
1 rounds | 3 problems
Interviewed by Goldman Sachs
1586 views
0 comments
0 upvotes
company logo
Analyst
3 rounds | 8 problems
Interviewed by Goldman Sachs
887 views
0 comments
0 upvotes
company logo
Analyst
5 rounds | 7 problems
Interviewed by Goldman Sachs
1685 views
1 comments
0 upvotes
company logo
Analyst
6 rounds | 12 problems
Interviewed by Goldman Sachs
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Analyst
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
2263 views
0 comments
0 upvotes
Analyst
3 rounds | 3 problems
Interviewed by Virtusa
728 views
0 comments
0 upvotes
company logo
Analyst
2 rounds | 7 problems
Interviewed by Dunzo
614 views
0 comments
0 upvotes