goldman sachs logo
Goldman Sachs· Associate

Goldman sachs coderpad round for Associate

Posted
13 Aug 2026
109 reads

Summary

I completed a CoderPad round for an Associate position at Goldman Sachs, which featured problems similar to Trapping Rain Water and Find Minimum in Rotated Sorted Array.

How it went

Questions asked (2)

  1. 01

    Trapping Rain Water

    Data Structures & Algorithms · Hard

    Given n non‑negative integers representing an elevation map where the width of each bar is 1, compute how much water can be trapped after it rains.

    Example:

    Input: height = [0,1,0,2,1,0,1,3,2,1,2,1]
    Output: 6
    
    Open the problem
  2. 02

    Find Minimum in Rotated Sorted Array

    Data Structures & Algorithms · Medium

    Given a rotated sorted array of distinct integers, find the minimum element.

    Example:

    Input: nums = [4,5,6,7,0,1,2]
    Output: 0
    
    Open the problem

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!