Sponsored
Use these hints if you're stuck. Try solving on your own first.
For a fixed number of candies c, how can you check if each child can get c candies?
Use binary search to find the maximum c as the answer.
Solve with full IDE support and test cases