20%off off — LaunchSpecial
Exercises/#144 Jump Game III
#144

Jump Game III

Hard🕸️ Graphs
130 XP

Problem

Given an array, start at index start. From index i you can jump to i+arr[i] or i-arr[i]. Return true if you can reach any index with value 0.

Examples

Input: arr=[4,2,3,0,3,1,2], start=5
Output: true

Input: arr=[3,0,2,1,2], start=2
Output: false
graphbfsdfsarray
AI Assistant— powered by AI

Unlock hints progressively — start gentle, go deeper only if needed.

💡

Level 1: Gentle Nudge

A subtle direction

🗺️

Level 2: Approach

The algorithm to use

🔍

Level 3: Detailed

Step-by-step guidance

144 / 150

Your Solution

⚡ JavaScript

to save progress and use AI features