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

Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: DBMS, Data Structure, C, C++ language, HTML, CSS, SQL, Java, General Aptitude, Verbal Ability, Reasoning, Probability
Tip
Tip

Tip 1 : Prepare the core subjects like OOPs, Operating system,s and networking
Tip 2 : Be well versed with the data structures and algorithms and practice coding problems.
Tip 3 : Practice mocking interviews before the actual interviews
Tip 4 : Read the last interview experiences from the code studio platform

Application process
Where: Other
Eligibility: All the 2019 engineering graduates were eligible
Resume Tip
Resume tip

Tip 1 : Choose the right format, and make it simple and clean.
Tip 2 : Add 2-3 solid projects to your resume to stand out from other candidates
Tip 3 : Be aware of all the topics which you mentioned in your resume as the interviewer is going to ask questions from the resume only

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date1 Sep 2019
Coding problem0

It was a 90 minutes long proctored test with different slots based on aptitude and coding. There were six sections with a total of 66 questions:

02
Round
Medium
Online Coding Test
Duration135 minutes
Interview date14 Sep 2019
Coding problem1

The Technical Round was of 2 hours 15 minutes and was conducted on HackerRank. It comprised 5 sections:
Programming – 30 minutes: 2 easy to medium level questions (1 of 20 marks other of 30).
Quantitative Aptitude – 25 minutes: 7 Math-related MCQs.
Computer Science – 20 minutes: 8 MCQs based on Computer Science subject topics like OOPs, OS, DBMS, DSA 
Advanced Programming – 45 minutes: 1 question on Advanced Data Structures (100 marks)
Tell me about Yourself – 15 minutes: 2 essay-type questions

1. Longest Valid Parentheses

Moderate
10m average time
90% success
0/80
Asked in companies
IntuitCIS - Cyber InfrastructureUber

You are given a string ‘S’ containing only the characters ‘)’ and ‘(‘. You need to find the length of the longest valid i.e. well-formed parentheses substring.

For example:
Let the given string be “(()())((”.

Here the valid parentheses substrings are: “()”, “()” and “(()())”. Out of these the longest valid string is “(()())” which has a length 6.
Try solving now
03
Round
Medium
Video Call
Duration60 Minutes
Interview date28 Sep 2019
Coding problem2

This was the technical interview in which one interviewer was there conducted virtually over the zoom platform.
In this interview, the interviewer asked about the projects done in college and gave me two coding questions to solve and find the optimized solution.

1. Merge Two Sorted Linked Lists

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

You are given two sorted linked lists. You have to merge them to produce a combined sorted linked list. You need to return the head of the final linked list.

Note:

The given linked lists may or may not be null.

For example:

If the first list is: 1 -> 4 -> 5 -> NULL and the second list is: 2 -> 3 -> 5 -> NULL

The final list would be: 1 -> 2 -> 3 -> 4 -> 5 -> 5 -> NULL
Problem approach

Iterative Approach:

Step 1. Init a dummy node to keep track of head, once we merged two list we can return dummy.next
Step 2. Iterate through list1 and list2, and use a extra pointer curr to track current Node

If list1.val < list2.val: Set curr.next = list1, and move list1's pointer forward
Else if list1.val > list2.val: Set curr.next = list2, and move list2's pointer forward
Move curr to curr.next
Step 3. Once we iterate through one of these two list, we make curr.next points to reaming list.

Complexity Analysis
Time: O(N+M): Let N and M be length of list1 and list2.
Space: O(1)

Iterative Code
Python

class Solution:
def mergeTwoLists(self, list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]:
# Create a dummy node to keep track of head
dummy = ListNode(0)
curr = dummy
# Iterate through list1 and list2
while list1 and list2:
if list1.val < list2.val:
curr.next = list1
list1 = list1.next
else:
curr.next = list2
list2 = list2.next
curr = curr.next

# For remaining
curr.next = list1 or list2

return dummy.next

Try solving now

2. Best Time to Buy and Sell Stock

Moderate
20m average time
80% success
0/80
Asked in companies
IntuitOptumOYO

You are given an array/list 'prices' where the elements of the array represent the prices of the stock as they were yesterday and indices of the array represent minutes. Your task is to find and return the maximum profit you can make by buying and selling the stock. You can buy and sell the stock only once.

Note:

You can’t sell without buying first.
For Example:
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
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

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
31596 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
8167 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Goldman Sachs
973 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Intern
3 rounds | 4 problems
Interviewed by CIS - Cyber Infrastructure
650 views
0 comments
0 upvotes
company logo
Intern
2 rounds | 2 problems
Interviewed by Microsoft
1499 views
0 comments
0 upvotes
company logo
Intern
2 rounds | 2 problems
Interviewed by Adobe
1019 views
0 comments
0 upvotes