javascript input [1,2] 2, expected:[1,2] ?


  • 0
    C

    Am i missunderstanding this problem?
    the result follows puzzled me

    (I am using javascript to solve this problem)

    0_1497846277739_11128d4d-1370-4080-892c-20f565d65b71-image.png


Log in to reply
 

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