Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 290 Bytes

trollSolution.md

File metadata and controls

3 lines (2 loc) · 290 Bytes

You leave grandma's house with two cakes. Each time you cross a bridge, you give the troll one cake, and then he gives you back a number of cakes equal to how many you have left.

It's easy to see that every time you leave a bridge, and thus when you return home, you still have two cakes.