Associate Goldman Sachs | US

goldman sachs logo
goldman sachs
AssociateUS
June 10, 20256 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.

Full Experience

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.

Interview Questions (2)

Q1
First Unique Character in a String
Data Structures & AlgorithmsEasy

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/

Q2
Find Distance Between Two Words (Debugging)
Data Structures & AlgorithmsMedium

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.

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!