InterviewLegend

Grid Simulations

Alex Chen34 min readUpdated 36 real interview reports

A few Anduril interviewers have asked candidates to build a small game on a grid, sometimes right after a run of quick C++ questions and sometimes in a senior loop. There's no trick in any of them. They check whether you can model a board and keep the rules straight as the game grows.

Start each one by fixing the model. Decide how the board is stored, what a move takes as input, and what the function returns. Then write the rule for one step, and check that every cell reads the state it should.

The Anduril angle
Anduril's autonomy code runs a similar loop. It keeps a picture of the world, checks a planned move against it, then updates it once per tick, which is why a small game fits the round. Keep the check, the update and the output in separate functions. When the interviewer adds rotation, scoring or a bigger board, you only change one of them. Point out which cells sit on the edge before you code, because most of the bugs in these problems show up there.

AndurilPremium lesson · Coding round

The 3 Anduril problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Medium

Each with hints, the follow-up and a tested solution.

Get the Anduril questions

$49 a year · all 100 companies · cancel anytime

From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.

Had your Anduril interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Anduril interview guide

Know what Anduril asks before you walk in.

31 coding · 2 system design · 14 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

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