goldman sachs logo
Goldman Sachs· Analyst

Goldman Sachs | Analyst | Bengaluru | Selected

Location
Bengaluru
Experience
1.1 years
Posted
12 Jun 2025
339 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.

How it went

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/

Questions asked (21)

  1. 01

    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]

  2. 02

    Trapping Rain Water (Snowpack)

    Data Structures & Algorithms · Hard

    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.

  3. 03

    Car Pooling

    Data Structures & Algorithms · Medium

    Open the problem
  4. 04

    Find the Winner of the Circular Game

    Data Structures & Algorithms · Medium

    Open the problem
  5. 05

    Rotting Oranges

    Data Structures & Algorithms · Medium

    Open the problem
  6. 06

    Single-Threaded CPU

    Data Structures & Algorithms · Hard

    Open the problem
  7. 07

    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

  8. 08

    Singleton Class Implementation

    Other

    Implementation of a singleton class.

  9. 09

    Abstract Class vs Interface Comparison

    Other

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

  10. 10

    ArrayList vs LinkedList Comparison

    Other

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

  11. 11

    Static Keyword in Java

    Other

    Explanation of the 'static' keyword in Java.

  12. 12

    Process vs Thread

    Other

    Discuss the differences between processes and threads.

  13. 13

    CI/CD Process

    System Design

    Discuss the CI/CD process.

  14. 14

    Software Build Process

    System Design

    Explain how the software build process happens.

  15. 15

    Unit Testing for Database Connection Class

    Other

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

  16. 16

    Java Version Features

    Other

    Discuss different Java versions and their key features.

  17. 17

    SDLC Process

    Other

    Discuss the Software Development Life Cycle (SDLC) process.

  18. 18

    Why Leave Current Company?

    Behavioral

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

  19. 19

    Why Goldman Sachs?

    Behavioral

    Why do you want to work for Goldman Sachs?

  20. 20

    Handling Client Request for Competitor Information

    Behavioral

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

  21. 21

    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?

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Goldman Sachs recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

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