InterviewLegend

Design Snake and Ladder

Commonly asked
Alex Chen40 min readAdded 392 real interview reports

Snake and ladder is a board game. Players start off the board, roll a die in turn and move forward by the number rolled. Land at the foot of a ladder and you climb to its top. Land on a snake's head and you slide down to its tail. The first player to land exactly on the last cell wins. At Goldman Sachs it's one of the most commonly reported low-level design (LLD) prompts. LLD means classes, fields and methods written as code, with no servers or databases in the picture. Reports run from Analyst to VP and cluster at Associate. It tends to land in the Superday round called Software Engineering Practices, or in a round that mixes your past work, Java questions and an LLD prompt. One Analyst describes a 40-minute slot of pseudocode plus class design.

Nobody is graded on knowing the game. The grade comes from what surrounds it: small, clear classes, rules that change without rewriting the loop, and edge cases you raise before the interviewer does. Code a test can drive counts too. And when the follow-up arrives, you should see that the board is a graph.

The Goldman Sachs angle
At Goldman this tends to be a short build with many edge-case questions. One Associate used a Board, a Jump class, a dice service and a player queue; another was asked for the minimum steps to reach a position. Some panels want Java that compiles and runs, so the classes below are Java.

Goldman SachsPremium lesson · System design round

The Goldman Sachs design, worked end to end.

  1. The API and data modelSystem design
  2. The design, drawn out2 diagrams
  3. 5 deep divesWith the tradeoffs
Get the Goldman Sachs questions

$49 a year · all 107 companies · instant access

392 Goldman Sachs interview reports · guide updated

Goldman Sachs interview guide

Know what Goldman Sachs asks before you walk in.

22 coding · 7 system design · 22 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Goldman Sachs interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.