You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> There are N children standing in a line. Each child is assigned a rating value.
4
+
>
5
+
> You are giving candies to these children subjected to the following requirements:
6
+
>
7
+
> Each child must have at least one candy. Children with a higher rating get more candies than their neighbors. What is the minimum candies you must give?
0 commit comments