Goldman Sachs Coderpad round questions !!!

Posted
27 Jun 2025
353 reads

Summary

I had a coderpad round with Goldman Sachs where I was asked two coding questions. I struggled with both, particularly the first one which was a sliding window problem, and ran out of time on the second, leading to a feeling that I lost the opportunity.

How it went

I had a coderpad round with GS this week(This was the first time i used coderpad btw)So, I was asked to write the code for two questions under 60 mins. I vaguely remember the questions , them being

1) Given a string , we have to find the longest uniform string and return an array of which first element will be the starting index of the uniform string and second element will be the length of that uniform string

-- I knew it was a typical sliding window problem and I straight up digged into the code but halfway down I struggled to finish my logic also the interviewer was kinda tough throughout the round like she had a frowning face which was making me even more tensed lol .

2. Second question was to calculate the bestAverageGrade..it's a typical problem asked in their earlier rounds ..i regret not practising this . While implenting the solution my logic was correct i fumbled on this one too as i was about to run it the time was up, and towards the end I knew I lost this one ..but it was a good experience. So,to anyone reading this hope this helps you. Good luck!!

Questions asked (2)

  1. 01

    Longest Uniform Substring

    Data Structures & Algorithms

    Given a string, we have to find the longest uniform string and return an array of which first element will be the starting index of the uniform string and second element will be the length of that uniform string.

  2. 02

    Calculate Best Average Grade

    Data Structures & Algorithms

    Second question was to calculate the bestAverageGrade. It's a typical problem asked in their earlier rounds.

How they prepared

I regret not practising the "bestAverageGrade" problem, which is typically asked in their earlier rounds.

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!