Balls
Practice
3.5 (76 votes)
Easy
Code Editor

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...

Submissions
Please login to view your submissions
Similar Problems
Points:50
6 votes
Tags:
Advanced Data StructuresSegment TreesBasics of ImplementationData StructuresImplementationSegment treeCombinatorics
Points:50
6 votes
Tags:
Permutation and combinationDynamic Programming2D dynamic programmingFast Fourier transformAdvanced AlgorithmsAlgorithmsDivide-and-conquer algorithm
Points:20
71 votes
Tags:
Ad-HocApprovedEasyImplementationOpenReadySorting
Editorial

Login to unlock the editorial