this code could be accepted, but if i input the array[1,2,1,1,1], it will show time out, that's why?


Log in to reply
 

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