Zomato OA Question 2024 June | Greedy | on-campus

Zomato · Question · Posted Jun 2026

Question: Jump Game Problem Statement You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position. Return true if you can reach the last index, or false otherwise. Constraints 1 <= nums.length <= 104 0 <= nums[i] <= 105 Examples Example 1: Input: nums = [2,3,1,1,4] Output: true Explanation 1: From index 0 (value=2), jump to index 1 (value=3), then jump ...

The full answer & interview discussion are available to premium members.

Log in Create a free account