The maximum distance
Practice
3.7 (32 votes)
Advanced data structures
Algorithms
Data structures
Segment trees
Square root decomposition
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...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:30
8 votes
Tags:
ApprovedMathMediumOpenTrees
Points:30
6 votes
Tags:
Binary SearchMediumRange QueriesSegment TreesSets
Points:30
114 votes
Tags:
ApprovedData StructuresDynamic ProgrammingFenwick TreeHiringMediumReadySegment Trees
Editorial

Login to unlock the editorial