Software Engineer • Junior-Level
Software Engineer • Junior-Level
High QualityPrep Other Coding Questions Asked by Goldman Sachs
Continue with targeted prep from Goldman Sachs's coding question bank.
Interview Summary
The Goldman Sachs onsite consisted of three rounds covering coding, cache design, and system design. The coding questions included staircase-style search in a 2D matrix, an O(1) randomized data structure, Dungeon Game, and LRU Cache. The final round asked for an end-to-end Pastebin system design, starting from requirements and progressing through entities, APIs, and the overall architecture.
Interview Details
Round 1
-
Coding: 2D Matrix Staircase Search The first problem involved searching for a target value in a two-dimensional matrix using a staircase-style search. The task focused on efficiently determining whether the target exists in the matrix under the ordering properties provided by the prompt.
-
Coding: O(1) Randomized Data Structure The second problem asked me to design a data structure supporting all of the following operations in expected
O(1)time:putdeletegetRandom
The problem is closely related to **LeetCode 380 — Insert
Unlock Full Details
Create a free account to unlock this interview experience report.