Unclear output, am I counting the index wrong?


  • 0
    C

    I got this

    Input:[-1,-7,7,-4,19,6,-9,-5,-2,-5]

    tail connects to node index 6

    Output:

    tail connects to node index 7

    Expected:

    tail connects to node index 6"

    as the result after i submit code, if i count correctly, -5 are at index 7 and 9?

    correct me


Log in to reply
 

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