# sorting easy

How Many Drops?

The rollercoaster's altitude log shows every moment of the ride β€” count the stomach-drops! 🎒

You get the altitudes as nums. Print how many times the value goes DOWN from one reading to the next.

Example:

Input: nums = [10, 20, 15, 25, 5] Output: 2

10β†’20 rises, 20β†’15 drops (1), 15β†’25 rises, 25β†’5 drops (2) β€” that's 2 drops total.

πŸ’‘ need a hint?

sort-how-many-drops.pyπŸ”’ given lines are locked β€” write your code in between
loading...