Why [1,0,2] is expecting 5 instead of 4, we can arrange them as 0,2,1 and give 1,2,1 candies resp.


Log in to reply
 

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