Given an array of costs, find the minimum cost to jump out of the array. From index i, you can either jump 2 indices forward or 1 index backward, and the cost of jumping from index i is a[i].
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.