Available question text
Given piles you can split but not merge, find the largest integer x such that you can form at least k piles of size x (i.e., sum floor(candies[i]/x) >= k). This is typically solved by binary-searching the possible pile size x and checking feasibility.
Related questions
Continue with questions that share topics or the same question type.
- Distribute Candies Among Children I
Coding
- Distribute Candies Among Children II
Coding
- Distribute Candies Among Children III
Coding
- Distribute Money to Maximum Children
Coding · Greedy · Math
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 2226. Maximum Candies Allocated to K Children
Reported Aug 4, 2025 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source