Goldman Sachs | Analyst | Bengaluru | Selected

goldman sachs logo
goldman sachs
AnalystBengaluru1.1 years
June 12, 20254 reads

Summary

I interviewed for the Analyst role at Goldman Sachs in Bengaluru and was selected. The process included an Online Assessment (OA) and a Super day with multiple rounds, covering coding, DSA, system design, and behavioral questions.

Full Experience

Current Experience: 1.10 Years College: Tier-2 Previous Organization: One of the MNCs

One Employee referred me.

OA

Coder pad round: 1st questions - Return an array containing prime numbers whose product is x Examples: primeFactorization( 6 ) == [2,3] primeFactorization( 5 ) == [5] primeFactorization( 12 ) == [2,2,3]

2nd question - Given an array of non-negative integers representing the elevations from the vertical cross section of a range of hills, determine how many units of snow could be captured between the hills.

 See the example array and elevation map below.
                             ___
         ___                |   |        ___
        |   |        ___    |   |___    |   |
     ___|   |    ___|   |   |   |   |   |   |
 ___|___|___|___|___|___|___|___|___|___|___|___
 [0,  1,  3,  0,  1,  2,  0,  4,  2,  0,  3,  0]
                             ___
         ___                |   |        ___
        |   | *   *  _*_  * |   |_*_  * |   |
     ___|   | *  _*_|   | * |   |   | * |   |
 ___|___|___|_*_|___|___|_*_|___|___|_*_|___|___
 [0,  1,  3,  0,  1,  2,  0,  4,  2,  0,  3,  0]

 Solution: In this example 13 units of snow (*) could be captured.

2) Implement computeSnowpack() correctly. 3) Consider adding some additional tests in doTestsPass(). trapping rainig water question basically.

Super day:

1st round: https://leetcode.com/problems/car-pooling/description/ https://leetcode.com/problems/find-the-winner-of-the-circular-game/description/

2nd round: https://leetcode.com/problems/rotting-oranges/description/ https://leetcode.com/problems/single-threaded-cpu/description/

3rd round: DSA - Everytime somebody comes to the website, we write a record to a log file consisting of TimeStamp, PageId, CustomerId. At the end of the day we have a big log file with many entires in that format. And for every day we have a new file. Now, given two log files (from day 1 and day 2), we want to generate a list of loyal customers that meet the criteria of a) they came on both days, and b) they visited at least two unique pages

singleton class implementation Abstract vs interface. When we prefer abstract class ArrayList/linked list When we prefer array list and linked list Static Process vs thread Design pattern used Singleton class Ci/cd process How Build process happen Unit testing.. Which library? Write Unit testing for a class for database connection. Which java version and it's features

HM round: Discussion on projects on resume. Sdlc process Standard behavioral questions Why leave current company? Why GS? Situation based questions like

  1. If an important client want some information about the other competitors. Then what you will do in this situation?
  2. If your colleague work in remote location and sent you the completed work. But the work is not relevant to the project than what you will do in this situation?

Verdict: Selected.

Compensation - https://leetcode.com/discuss/post/6834428/goldman-sachs-analyst-bengaluru-selected-6pew/

other interview exp - https://leetcode.com/discuss/post/6834384/all-interview-experiences-switch-journey-vpu1/

Interview Questions (21)

Q1
Prime Factorization of X
Data Structures & Algorithms

Return an array containing prime numbers whose product is x Examples: primeFactorization( 6 ) == [2,3] primeFactorization( 5 ) == [5] primeFactorization( 12 ) == [2,2,3]

Q2
Trapping Rain Water (Snowpack)
Data Structures & AlgorithmsHard

Given an array of non-negative integers representing the elevations from the vertical cross section of a range of hills, determine how many units of snow could be captured between the hills.

 See the example array and elevation map below.
                             ___
         ___                |   |        ___
        |   |        ___    |   |___    |   |
     ___|   |    ___|   |   |   |   |   |   |
 ___|___|___|___|___|___|___|___|___|___|___|___
 [0,  1,  3,  0,  1,  2,  0,  4,  2,  0,  3,  0]
                             ___
         ___                |   |        ___
        |   | *   *  _*_  * |   |_*_  * |   |
     ___|   | *  _*_|   | * |   |   | * |   |
 ___|___|___|_*_|___|___|_*_|___|___|_*_|___|___
 [0,  1,  3,  0,  1,  2,  0,  4,  2,  0,  3,  0]

 Solution: In this example 13 units of snow (*) could be captured.

2) Implement computeSnowpack() correctly. 3) Consider adding some additional tests in doTestsPass(). trapping rainig water question basically.

Q3
Car Pooling
Data Structures & AlgorithmsMedium
Q4
Find the Winner of the Circular Game
Data Structures & AlgorithmsMedium
Q5
Rotting Oranges
Data Structures & AlgorithmsMedium
Q6
Single-Threaded CPU
Data Structures & AlgorithmsHard
Q7
Loyal Customers from Log Files
Data Structures & Algorithms

Everytime somebody comes to the website, we write a record to a log file consisting of TimeStamp, PageId, CustomerId. At the end of the day we have a big log file with many entires in that format. And for every day we have a new file. Now, given two log files (from day 1 and day 2), we want to generate a list of loyal customers that meet the criteria of a) they came on both days, and b) they visited at least two unique pages

Q8
Singleton Class Implementation
Other

Implementation of a singleton class.

Q9
Abstract Class vs Interface Comparison
Other

Discuss the differences between abstract classes and interfaces, and when to prefer an abstract class over an interface.

Q10
ArrayList vs LinkedList Comparison
Other

Discuss the differences between ArrayList and LinkedList, and when to prefer one over the other.

Q11
Static Keyword in Java
Other

Explanation of the 'static' keyword in Java.

Q12
Process vs Thread
Other

Discuss the differences between processes and threads.

Q13
CI/CD Process
System Design

Discuss the CI/CD process.

Q14
Software Build Process
System Design

Explain how the software build process happens.

Q15
Unit Testing for Database Connection Class
Other

Discuss unit testing, relevant libraries, and write unit tests for a class handling database connections.

Q16
Java Version Features
Other

Discuss different Java versions and their key features.

Q17
SDLC Process
Other

Discuss the Software Development Life Cycle (SDLC) process.

Q18
Why Leave Current Company?
Behavioral

Tell me why you are looking to leave your current company.

Q19
Why Goldman Sachs?
Behavioral

Why do you want to work for Goldman Sachs?

Q20
Handling Client Request for Competitor Information
Behavioral

If an important client wants some information about other competitors, what would you do in this situation?

Q21
Handling Irrelevant Work from Remote Colleague
Behavioral

If your colleague, working remotely, sends you completed work that is not relevant to the project, what would you do in this situation?

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!