>RunTimeFix
BookStudyPracticeInterviewsYouTubeCoursesAbout
Log inGet Started
Practice/Sorting & Searching
4 subtopics · 19 problems

Sorting & Searching

Sorting-based reasoning, binary search on arrays, and binary search on the answer.

01Custom Sorting & Comparators

Sort with custom logic, then sweep or query.

3 easy1 medium1 hard
ProblemDifficultyLink
339AHelpful MathseasySolve
405AGravity FlipeasySolve
1850DBalanced RoundeasySolve
1881DDivide and EqualizemediumSolve
1850GThe Morning StarhardSolve

02Binary Search on Sorted Array

Use lower_bound/upper_bound to answer queries in O(log n).

2 easy2 medium1 hard
ProblemDifficultyLink
706BInteresting drinkeasySolve
1850ECardboard for BoxeseasySolve
1843DApple TreemediumSolve
1462DAdd to Neighbour and RemovemediumSolve
1862EKolya and Movie TheatrehardSolve

03Binary Search on the Answer

Guess the answer, check feasibility, and narrow the search space.

4 medium2 hard
ProblemDifficultyLink
1873EBuilding an AquariummediumSolve
1843ETracking SegmentsmediumSolve
812CSagheer and Nubian MarketmediumSolve
1201CMaximum MedianmediumSolve
1900DSmall GCDhardSolve
460CPresenthardSolve

04Ternary Search

Find the maximum/minimum of a unimodal function.

1 medium2 hard
ProblemDifficultyLink
439DDevu and his BrothermediumSolve
578AA Problem about PolylinehardSolve
782BThe Meeting Place Cannot Be ChangedhardSolve
All TopicsStudy the Theory
Was this helpful?
>RunTimeFix

Practical programming education. Books, videos, courses, and hands-on learning for competitive programming, DSA, and software engineering.

RunTimeFix

  • About
  • YouTube
  • Book
  • Study Library
  • Courses

Learn

  • Competitive Programming
  • DSA
  • Development
  • Databases

Legal

  • Privacy
  • Terms
  • Refund Policy

RunTimeFix — debug → solve → run

© 2026 RunTimeFix. All rights reserved.