kids-candies-linear-time

Status: IN

`kidsWithCandies` runs in O(n) time and O(n) space, making exactly two passes over the input: one for `max`, one for the comprehension.

Source: entries/2026/06/06/kids-with-the-greatest-number-of-candies-solution.md

JSON