InterviewLegend

Arrays, Sorting and Subsets

Alex Chen26 min readUpdated 36 real interview reports

One phone screen question here grows in phases. It starts small, adds a constraint at each step, and ends by asking whether any valid answer exists at all. Each phase reuses the sort from the first one, so if phase one is clean, the rest goes quickly.

The other two problems start as short prompts and come with real follow-ups. One is a classic enumeration, and the other is a small class where the storage choice matters.

The Anduril angle
These prompts arrive vague, and your clarifying questions shape the code. Ask whether values can repeat, how an empty slot counts, and how full the data usually is, since Anduril perception teams work with camera features that are mostly zeros and storage is a fair thing to bring up there. Then say what you would store. Write it after that.

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.