...

/

Challenge: Collect Coins in Minimum Steps

Challenge: Collect Coins in Minimum Steps

Find the minimum number of steps needed to collect coins using the heights of vertically stacked coins.

Coin collection in minimum steps

Suppose you are given many adjacent piles of vertically stacked coins, like so:

Press + to interact

You are required to calculate the minimum number of steps to collect these coins (minimum number of straight ...