The official solution cannot handle one corner case


  • 0
    P

    For the input [1,2,2,2,2,2,2,2,2,-2147483648,-2147483647,-2147483646,2147483647], the official solution outputs 4, while the correct answer is 3.


Log in to reply
 

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