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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, Operating System, DBMS, OOPs, Aptitude, SQL
Tip
Tip

Tip 1 : 1-2 Projects enough, but at least 1 should be very unique and creative.
Tip 2 : Strong DSA is a must, OS & DBMS equally important.
Tip 3 : Be verbal during the interview.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : One pager.
Tip 2 : No Spelling mistakes at any cost.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration135 minutes
Interview date2 Aug 2020
Coding problem1

The test was conducted on Hackerrank in the evening, and there was no section
based timing.
It basically had 4 parts:
1. Aptitude Section
2. CS Fundamentals including OS, DBMS, OOPs
3. 2 Essay Writing questions(Subjective)
4. 1 Easy, 1 Medium Hard Coding Question

1. First non repeating character

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

Ninja is now bored with numbers and is now playing with characters but hates when he gets repeated characters. Ninja is provided a string, and he wants to return the first unique character in the string.The string will contain characters only from the English alphabet set, i.e., ('A' - 'Z') and ('a' - 'z'). If there is no non-repeating character, print the first character of the string. If there is no non-repeating character, return the first character of the string.

Try solving now
02
Round
Medium
Video Call
Duration50 minutes
Interview date4 Aug 2020
Coding problem1

We were provided a link to the zoom meeting and the codepair link where I had to write the code for a given problem.The interviewer first asked me to introduce myself and asked me a little about my project. This took around 10-15 minutes, which was followed by a DSA Question. It was a standard Linked list question. The question was medium difficulty and I was able to code it within the given time, including handling all corner cases.

1. Reverse List In K Groups

Hard
15m average time
85% success
0/120
Asked in companies
SAP LabsSamsungIBM

You are given a linked list of 'n' nodes and an integer 'k', where 'k' is less than or equal to 'n'.


Your task is to reverse the order of each group of 'k' consecutive nodes, if 'n' is not divisible by 'k', then the last group of nodes should remain unchanged.


For example, if the linked list is 1->2->3->4->5, and 'k' is 3, we have to reverse the first three elements, and leave the last two elements unchanged. Thus, the final linked list being 3->2->1->4->5.


Implement a function that performs this reversal, and returns the head of the modified linked list.


Example:
Input: 'list' = [1, 2, 3, 4], 'k' = 2

Output: 2 1 4 3

Explanation:
We have to reverse the given list 'k' at a time, which is 2 in this case. So we reverse the first 2 elements then the next 2 elements, giving us 2->1->4->3.


Note:
All the node values will be distinct.


Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date4 Aug 2020
Coding problem2

We were provided a link to the zoom meeting and the codepair link where I had to write the code for a given problem.The interviewer first asked me to introduce myself, which was followed by a DSA Question. Lastly, he spent around 10 minutes to discuss about my resume and project.

1. Number of rectangles in a grid

Easy
15m average time
85% success
0/40
Asked in companies
DirectiGoldman SachsMAQ Software

You are given an arbitrary grid with M rows and N columns. You have to print the total number of rectangles which can be formed using the rows and columns of this grid. In simple words, print the number of unique rectangles in the grid.

For example:
Consider the grid shown below. The dark black boundary encloses a grid of dimension 3x4.

alt text

The green colour represents rectangles of dimension 1x1. 
The brown colour represents the rectangles of dimension 1x2.
The blue colour represents the rectangles of dimension 2x2.
The red colour represents the rectangles of dimension 3x3.
The yellow colour represents the rectangles of dimension 3x1.
There can be many different other possibilities as well. You need to print the total number of all such rectangles. 

Note:

Two rectangles are said to be unique if atleast one of their 4 sides is non-overlapping.
Try solving now

2. Rectangle Area

Ninja
55m average time
45% success
0/200
Asked in companies
AppleGoldman SachsAmdocs

You are given a list of rectangles where each rectangle is represented by an array of four integers (i.e. Rectangle[i]=[x1, y1, x2, y2], where x1, y1 represents the bottom left point of the rectangle and x2.y2 represents the top right point of the rectangle, you have to find the total area covered by all the rectangles in the plane.

Example :

Rectangles = [[0, 0, 2, 2], [1, 0, 2, 3],[1, 0, 3, 1]], 

For the given three rectangles, you can observe that the first rectangle occupies an area of 4 units and the second rectangle has an area of 3 units, but we have to keep one thing also in mind that they have an area of 3 units common overlapping among them, so we cannot include it again, so the final area which comes out for all the rectangles is 6 units.

Total Area = 6 units

Try solving now
04
Round
Hard
HR Round
Duration45 minutes
Interview date4 Aug 2020
Coding problem1

1. Basic HR Questions

What are your strengths and weakness?

What motivates you?

Problem approach

Tip 1 : Be very very calm.
Tip 2 : Even if you mention your weakness, have a strong valid point along with that on how you are working to improve that.
Tip 3 : Be extremely honest, and stick to your points.

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 - Intern
3 rounds | 5 problems
Interviewed by Goldman Sachs
2523 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 11 problems
Interviewed by Goldman Sachs
5993 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Goldman Sachs
1012 views
1 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Goldman Sachs
822 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15606 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes