goldman sachs logo
Goldman Sachs· Associate

Associate Goldman Sachs | US

Location
US
Posted
10 Jun 2025
322 reads

Summary

I recently completed the online assessment and codepad rounds for an Associate position at Goldman Sachs in the US, successfully solving both questions and moving to the next stage.

How it went

Hello Everyone,

I recently had online assessment and codepad for goldman sachs. Solved both questions with all test cases passed. Moved to next stage got results in couple of hours after interview.

Codepad.

1.This is easy question. How ever it's more about how you answer and provide solution.

https://leetcode.com/problems/first-unique-character-in-a-string/description/

  1. Meduim Question based on the String. we need to find distance between the two words.

String word = "Hello this is a leetcode" word1 = "this" word2 = "is"

so calculate median distance like this -> 4/2, is -> 2/1

so start with 2 for word1 and "is" word2. Distance is 3.

How ever code is already present we need to figure out the bugs and fix them. It's more of collaboration round.

I already cleard GS Associate few years back and giving the interview again.

Questions asked (2)

  1. 01

    First Unique Character in a String

    Data Structures & Algorithms · Easy

    This is easy question. However, it's more about how you answer and provide a solution. The problem can be found at: https://leetcode.com/problems/first-unique-character-in-a-string/description/

    Open the problem
  2. 02

    Find Distance Between Two Words (Debugging)

    Data Structures & Algorithms · Medium

    Medium Question based on a String. We need to find the distance between two words. Given a String like "Hello this is a leetcode", and two words, e.g., word1 = "this", word2 = "is". Calculate median distance like this: word1 'this' -> 4/2, word2 'is' -> 2/1. So, starting with 2 for word1 and 'is' for word2, the distance is 3. However, code is already present, and we need to figure out the bugs and fix them. It's more of a collaboration round.

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!