← Microsoft questions

Minimum Moves to Flip Coins

Filed under Microsoft

Given N coins in a line showing heads or tails, find the minimum moves to turn all heads up if you can flip any number of consecutive coins in one move.

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.