← Deutsche Bank questions
CodingMedium-Hard

Minimum cost of jumping out of an array

Filed under Deutsche Bank

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.

Related Deutsche Bank questions

Collected from public candidate posts and coding forums. Updated Nov 2026.