Goldman sachs coderpad round

Posted
17 Jan 2026
359 reads

Summary

I participated in a coderpad round at Goldman Sachs where I was presented with two coding challenges: 'Squares of a Sorted Array' with follow-ups on optimal space complexity, and an implementation task for an LFU Cache including its get, put, and remove methods.

How it went

Got 2 questions:

  1. https://leetcode.com/problems/squares-of-a-sorted-array/description/

Was asked multiple follow ups, O(N) time & O(1) space solution was expected at the last.

  1. LFU Cache implementation.

was asked to implement get put & remove methods.

Questions asked (2)

  1. 01

    Squares of a Sorted Array

    Data Structures & Algorithms

    Was asked multiple follow ups, O(N) time & O(1) space solution was expected at the last.

    Open the problem
  2. 02

    LFU Cache Implementation

    Data Structures & Algorithms

    Implement LFU Cache. I was asked to implement get, put & remove methods.

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!