LeetCode #122: The Valleys and Peaks Approach
I revisited a LeetCode problem with a different solution that made more sense. Though the newer solution is thicker and less pretty.
Tags: beginners, algorithms, arrays, ruby