← Microsoft questions

Tower of Hanoi

Filed under Microsoft · Also reported at American Express, Baker Hughes, Druva, ETech, Flipkart, Interra Systems, Ivanti, LoanUnbox.com and 3 more

Given three rods and N disks of different sizes, move the entire stack from the source rod to the destination rod. You can only move one disk at a time, and no larger disk can be placed on top of a…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.