InterviewLegend

Short Live-Coding Problems

Alex Chen50 min readUpdated 20 real interview reports

Not every SpaceX round is a long build. Phone screens and one-hour technicals often start with a problem you already know, then push on the follow-up. A sorted list turns into a shuffled one, or ten strings become a million.

Five short problems are worked below, across binary search, bit tricks, hashing, linear algebra and linked lists. Two of them look trivial until you check the overflow or the scale.

Some of these rounds run in a shared doc with no compiler. Say what every variable means before you write the loop, and trace a tiny case by hand. Follow-ups push on scale and memory, and one asked what changes when the inputs hold a million items. Write each solution on paper first, then run it, so you get used to finding bugs without a compiler.

SpaceXPremium lesson · Coding round

The 5 SpaceX problems are below.

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

+ 2 more in this lesson

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

Get the SpaceX 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 SpaceX interview?Tell us what they asked. Reviewed before it goes in, never with your name.
SpaceX interview guide

Know what SpaceX asks before you walk in.

20 coding · 1 system design · 15 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.