mymiller.name
Algorithm: Max Diff between consecutive elements in an ordered array
So you have an array that is ordered from highest to lowest, and now you need to know what is the maximum difference between consecutive elements in the array. So let’s take a look at w…