Greedy Algorithm Visualization
Use the Next button to step through the greedy algorithm, or Previous to go back.
Total Pairs: 3
Algorithm Type: Greedy
Approach: Sort by end value
Time Complexity: O(n log n)
Space Complexity: O(1)