Goldman Sachs Coderpad round questions !!!

goldman sachs logo
goldman sachs
June 27, 20253 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.

Full Experience

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!!

Interview Questions (2)

Q1
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.

Q2
Calculate Best Average Grade
Data Structures & Algorithms

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

Preparation Tips

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

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!