Finally, I found that I misunderstood the question.


  • 0
    B

    I have always been thinking this is probably one of the hardest questions... I read a lot of discussion, but only to be more and more confused. Then I realize...

    the difference between nums[i] and nums[j]

    means

    the difference of nums[i] and nums[j]

    not

    the difference among nums[i], nums[i+1], nums[i+2], ..., nums[j]


Log in to reply
 

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