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

# SDE - 1

Goldman Sachs
2 rounds | 4 Coding problems

## Interview preparation journey

Preparation
Duration: 2 Months
Topics: Pointers , Recursion , Linked List, Binary Search Tree ,Queue, Array ,DP ,Graph
Tip

Tip 1 : Prepare your resume well.
Tip 2 : Deploy your projects so that the interviewer can view it. Also provide a hyperlink on your resume.
Tip 3 : Be thorough with Data Structures and Algorithms. Also prepare well topics such as OS,DBMS.

Application process
Where: Campus
Eligibility: Above 8 CGPA
Resume tip

Tip 1 : Deploy your projects so that the interviewer can view it. Also provide a hyperlink on your resume
Tip 2 : It's not important to have fancy projects. Only mention those on which you're confident.

## Interview rounds

01
Round
Medium
Online Coding Interview
Duration150 mintues
Interview date10 Aug 2020
Coding problem2

Nice goes i good environment.

### 1. Puzzle

There is a room with a door (closed) and three light bulbs. Outside the room, there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can’t change them. Identify each switch with its bulb. All bulbs are in working condition.
Let the bulbs be X, Y, and Z
Turn on switch X for 5 to 10 minutes. Turn it off and turn on switch Y. Open the door and touch the light bulb.
1. if the light is on, it is Y
2. if the light is off and hot, it is X
3. if the light is off and cold, it is Z

### 2. Best Time to Buy and Sell Stock III

Hard
0/120

#### Note

``````1. Buying a stock and then selling it is called one transaction.

2. You are not allowed to do multiple transactions at the same time. This means you have to sell the stock before buying it again.
``````
##### Example:
``````Input: ‘n’ = 7, ‘prices’ = [3, 3, 5, 0, 3, 1, 4].

Output: 6

Explanation:
The maximum profit can be earned by:
Transaction 1: Buying the stock on day 4 (price 0) and then selling it on day 5 (price 3).
Transaction 2: Buying the stock on day 6 (price 1) and then selling it on day 6 (price 4).
Total profit earned will be (3 - 0) + ( 4 - 1) = 6.
``````
02
Round
Easy
Video Call
Duration90 minutes
Interview date11 Aug 2020
Coding problem2

It happens in a nice environment but internet connection was week.

### 1. DBMS Question

What is the difference between SQL and NoSQL databases? (Learn)

### 2. Delete a Node from Linked List

Moderate
40m average time
67% success
0/80

#### You have been given a linked list of integers. Your task is to write a function that deletes a node from a given position, 'POS'.

##### Note :
``````Assume that the Indexing for the linked list always starts from 0.

If the position is greater than or equal to the length of the linked list, you should return the same linked list without any change.
``````
##### Illustration :
``````The following images depict how the deletion has been performed.
``````

#### Image-II :

Here's your problem of the day

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

What does ROLLBACK do in DBMS?

Start a Discussion
Similar interview experiences
SDE - 1
1 rounds | 3 problems
Interviewed by Goldman Sachs
797 views
SDE - 1
2 rounds | 3 problems
Interviewed by Goldman Sachs
518 views
SDE - 1
3 rounds | 5 problems
Interviewed by Goldman Sachs
1152 views
SDE - 1
5 rounds | 12 problems
Interviewed by Goldman Sachs
80 views
Companies with similar interview experiences
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
104062 views