Why [1] test expects true?

  • 0

    index value 0 + value = 1, meaning jumper should be advanced to index 1, which is out of boundary. IMHO this is false case, why it expects true? could someone help me understand this?

  • 2

    the value is the max steps you could jump. you could choose any steps smaller than the max step. for value 1, you could choose jump 0 .

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.