Does it mean the kid is only required to have more candy than those next to him?
[ 1, 15, 13 ]
[1, 2, 1] a valid answer?
Yes, children stand in line, neighbors is children next to him. However, the most left and most right child will have only one neighbor.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.