2 Eggs and 100 Floors (puzzle)

Asked atSamsung
1Give yourself 5 minutes
2Answer out loud, not in your head
3Then compare with the answer below
0
Stuck? Show a way to structure it+
  1. 01Choose first drop x so remaining interval is x-1.
  2. 02Decrease the step size after each safe drop.
  3. 03Ensure x+(x-1)+...+1 covers 100 floors.
  4. 04Solve for the smallest such x.

Reference answer

Then expect these follow-ups

  • What is the general DP recurrence for e eggs and f floors?

    Tests: minimax DP

  • Why does 14 rather than 13 work?

    Tests: triangular numbers

Hiring now

Samsung has 360 open roles right now

landed applies to roles like these for you, on each company’s own site, with answers written for the role.

Get 5x interviews10 free auto-applies. No card.
  • EHS Software Engineer

    12100 Samsung Blvd, Austin, TX, USA

  • Office & Compliance Manager – Maternity Leave Cover

    Azrieli Building G, Herzliya, Israel

  • Estágio em Desenvolvimento de Software

    Parque dos Resedas, Campinas, Brazil

Or practice this question first

Next question