← All problems
Hard · Greedy

Candy

Minimize candies while rewarding higher ratings than adjacent children.

Full problem and submission ↗
main.js

Console

Ready