>RunTimeFix
BookStudyPracticeInterviewsYouTubeCoursesAbout
Log inGet Started
Practice/Greedy Algorithms
4 subtopics · 16 problems

Greedy Algorithms

Make locally optimal choices that lead to a globally optimal solution.

01Sorting-Based Greedy

Sort first, then greedily pick or assign.

2 easy2 medium1 hard
ProblemDifficultyLink
1850ATo My CriticseasySolve
459APashmak and FlowerseasySolve
1829CMr. Perfectly FinemediumSolve
1843DApple TreemediumSolve
1881EBlock SequencehardSolve

02Interval / Activity Selection

Classic interval scheduling, merging, and coverage problems.

1 easy2 medium1 hard
ProblemDifficultyLink
1921BArranging CatseasySolve
1157C1Increasing Subsequence (easy)mediumSolve
1862CFlower City FencemediumSolve
1904DSet To MaxhardSolve

03Exchange Argument

Prove greedy correctness by showing swapping any pair doesn't improve the answer.

1 easy2 medium1 hard
ProblemDifficultyLink
1900BLaura and OperationseasySolve
1881DDivide and EqualizemediumSolve
1216CWhite SheetmediumSolve
1862EKolya and Movie TheatrehardSolve

04Priority Queue Greedy

Use a heap to always process the best available option.

2 medium1 hard
ProblemDifficultyLink
1399CBoats CompetitionmediumSolve
1353DConstructing the ArraymediumSolve
1154DWalking RobothardSolve
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.