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

Associate Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 2.5 months
Topics: Core Java, Data Structure and Algorithms, SQL, Spring Boot, Kafka, AWS
Tip
Tip

Tip 1 : Do at least one small project in core java or in any other language like, pdf converter, image converter etc
Tip 2 : Do at least 10 programs in a day it will help you to clear you problem solving skill and logical error mistakes

Application process
Where: Linkedin
Eligibility: 2 year experience in java only
Resume Tip
Resume tip

Tip 1 : Have some project in resume 
Tip 2 : Resume should be of one page

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date1 Mar 2021
Coding problem3

10 mcq and 3 java logical problem

1. Longest Unique Substring ll

Easy
0/40
Asked in companies
IntuitAmazonGoldman Sachs

You are given a string 'Str' consisting of 'N' lowercase Latin letters. You have to find the longest substring of the given string without repeating characters.

String ‘B’ is a substring of string ‘A’ if it can be obtained from ‘A’ by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end.

For Example :
If the given input string is "aabc", then you should return "abc" as the longest substring without repeating characters.
Note :
If there are multiple substrings with the same length, then you should print the substring which comes earlier in the given string. 
For Example :
If the given input string is "abcda", here “abcd” and “bcda” can be the longest unique substring but “abcd” comes earlier in the given string. So we will print “abcd” as the longest unique substring.
Problem approach

Sort the words in set of individual words

Try solving now

2. Reversing a Queue

Easy
10m average time
90% success
0/40
Asked in companies
ArcesiumGoldman SachsMAQ Software

You are given a queue of 'N' elements. Your task is to reverse the order of elements present in the queue.

You can only use the standard operations of the QUEUE STL.

1. enqueue(x): Add an item x to the rear of the queue.

2. dequeue(): Removes an item from the front of the queue.

3. size(): Returns the number of elements in the queue.

4. front(): Finds front element.

5. empty(): Checks whether the queue is empty or not.
Try solving now

3. Is It A Tree?

Moderate
20m average time
75% success
0/80
Asked in companies
Goldman SachsUrban Company (UrbanClap)CIS - Cyber Infrastructure

Given a graph with 'V' vertices numbered from 0 to 'V' - 1 and 'E' edges. Determine if it is a tree or not?

Try solving now
02
Round
Medium
Online Coding Test
Duration60 minutes
Interview date9 Mar 2021
Coding problem2

2 coding questions were asked. I had to solve question right in the VS Code

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.

Problem approach

Using string traversal

Try solving now

2. Smallest Subarray With K Distinct Elements

Easy
20m average time
80% success
0/40
Asked in companies
IntuitUberGoldman Sachs

Given an array 'A' consisting of 'N' integers, find the smallest subarray of 'A' containing exactly 'K' distinct integers.

Note :
If more than one such contiguous subarrays exist, consider the subarray having the smallest leftmost index.

For example - if A is [1, 2, 2, 3, 1, 3 ] and k = 2 then the subarrays: [1,2], [2,3], [3,1], [1,3] are the smallest subarrays containing 2 distinct elements. In this case, we will consider the starting and ending index of subarray [1,2] i.e. 0 and 1.
Try solving now
03
Round
Easy
Telephonic
Duration60 minutes
Interview date13 Jun 2022
Coding problem3

Three questions were asked one each from DSA, SQL and system design

1. Detect And Remove Cycle

Easy
10m average time
90% success
0/40
Asked in companies
WalmartOracleGoldman Sachs

You have been given a Singly Linked List of integers, determine if it forms a cycle or not. If there is a cycle, remove the cycle and return the list.

A cycle occurs when a node's ‘next’ points back to a previous node in the list.

Try solving now

2. SQL Queries

  • How would you write a query to find employees with the same salary from an employee table?
  • What is the default ordering of data using the ORDER BY clause? How could it be changed?
  • Do the following query returns the output?

                SELECT subject_code, AVG (marks)  

                FROM Students  

                WHERE AVG(marks) > 70  

                GROUP BY subject_code;  

Problem approach

Practice SQL Queries regularly. Don't ignore the DBMS section

3. System Design

Design a cache controller

Problem approach

Practice Designing some well asked system design questions

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
974 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Engineer
3 rounds | 10 problems
Interviewed by Amdocs
2410 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 2 problems
Interviewed by Ernst & Young (EY)
2776 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 15 problems
Interviewed by Ernst & Young (EY)
2405 views
0 comments
0 upvotes