← Deutsche Bank questions

Minimum cost to cross an array

Filed under Deutsche Bank

Given an array of costs, you can move either 1 step forward or 2 steps forward (or 1 step backward). Landing on an index adds its cost to your total. Find the minimum cost to reach the last index of…

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.