If child got more candy than his neighbor doesn't mean he has higher rating :)


#1

Think about input [1,2,2].