Challenge: Collect Coins in Minimum Steps
In this lesson, you will find the minimum number of steps it takes to collect the coins given an array of the heights of vertically stacks of coins.
We'll cover the following...
Coin collection in minimum steps
Suppose you are given many adjacent piles of vertically stacked coins.
You are required to calculate the minimum number of steps needed to collect these coins (minimum number of straight lines that pass through all the coins). In one step you can collect either one ...