Associate Goldman Sachs | US
- Location
- US
- Posted
- 10 Jun 2025
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/
- 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)
- 01
First Unique Character in a String
Data Structures & Algorithms · Easy
Open the problemThis 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/
- 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.