JS check problems?


  • 0
    B

    A bit strange unswers for js. For example for input
    [21,-1,-22,-20]
    4
    Expected answer is [-22,21,-1,-20].
    Can somebody explain algorithm for same number of mentions?


Log in to reply
 

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