403. Frog Jump

Description

A frog is crossing a river. The river is divided into some number of units, and at each unit, there may or may not exist a stone. The frog can jump on a stone, but it must not jump into the water.

Read more »

1306. Jump Game III

Description

Given an array of non-negative integers arr, you are initially positioned at startindex of the array. When you are at index i, you can jumpto i + arr[i] or i - arr[i], check if you can reachany index with value 0.

Read more »
0%