Question DSA-GRDY-0056
MediumIn the 'jump game', each element is the maximum jump from that index. What does a greedy scan track?
- A.
The smallest element
- B.
The farthest index reachable so far
- C.
Sign up free to see the answer and a step-by-step explanation.