🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2023 Math Kangaroo

Problem 17

Problem 17 · 2023 Math Kangaroo Stretch
Spatial & Visual Reasoning work-backward

In one move you may take some (or all) of the building blocks from the top of a stack, turn that group upside down, and put it back in the same place (see picture). Goran starts with the stack on the left and wants to end up with all the blocks ordered by size, as shown on the right. What is the smallest number of moves Goran needs?

Figure for Math Kangaroo 2023 Problem 17
Show answer
Answer: B — 3
Show hints
Hint 1 of 3
A move can only lift a group off the top and turn that whole group over, so the bottom blocks stay put unless you lift everything above them.
Still stuck? Show hint 2 →
Hint 2 of 3
Look at which blocks are already in the right size order and which clumps are reversed or out of place.
Still stuck? Show hint 3 →
Hint 3 of 3
Try to undo the disorder one reversed clump at a time, counting how few flips can finish the job.
Show solution
Approach: find the smallest set of top-flips that reorders the blocks
  1. A move lifts some blocks off the top, turns that chunk over, and puts it back, so one move can reverse a top group.
  2. Comparing the starting stack with the target size order shows which groups are out of place.
  3. Carrying out the reorder with the fewest such flips takes 3 moves.
  4. The minimum number of moves is B, 3.
Mark: · log in to save