Candy
Candy gives each child in a line a rating and requires at least one candy per child. Assign more candies to higher-rated neighbors while minimizing the total.
We'll cover the following...
We'll cover the following...
Statement
You are given an array, ratings, where ratings[i] represents the rating of the ...