🚩 The Problem Imagine a line of children, each with a performance rating. You’re tasked with distributing candies to them. But there’s a catch: Every child must get at least one candy. Children with a higher rating than their neighbours must get m...

Markdown supported · ⌘↵ to post
No responses yet.