Can you explain how your code terminate the loop of while(j<k)?


  • 0
    R

    Take {-1,0,1} for example, why it will be terminate the loop after push)back({-1,0,1}); Thanks.


Log in to reply
 

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