Search⌘ K
AI Features

Solution: Odd Even Jump

C# solution for the Odd Even Jump problem using the Dynamic Programming pattern.

We'll cover the following...

Statement

Given an integer array arr, you start at some index i and repeatedly jump to a larger index until you can no longer jump or you reach the last index.

A jump count starts at 11 for the first jump, 22 for the second jump, and so on.
For a jump from index i, you may only jump to an index j where j>ij > i ...