Return value is different


  • 0
    X

    When I run this code, the expect solution is one index less than the actual output, should we change "return [index[check] + 1, i + 1]" to "return [index[check], i]"???


Log in to reply
 

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