Find which pile a specific plate belongs to
Filed under Hyperverge
The question
Given an array of piles where each index contains a count of plates, determine which pile the n-th plate belongs to using prefix sum and binary search.
No write-up yet. Related questions below have one.
Related Hyperverge questions
Collected from public candidate posts and coding forums. Updated Nov 2026.