Status: IN
The distribution simulation runs O(sqrt(candies)) iterations because the sum 1+2+...+k reaches `candies` when k ≈ sqrt(2*candies), making it sublinear in the candy count.
Source: entries/2026/06/06/distribute-candies-to-people-solution.md
JSON