Given an array `blocks` of positive integers representing heights, two frogs start at the same block. One frog can jump left to adjacent blocks of equal or greater height, and the other can jump right…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.