Abstract Algorithms
Abstract AlgorithmsAn AI Powered Learning Platform

  • Home
  • Interview Prep
Home

Topic

intervals

1 article

Merge Intervals Pattern: Solve Scheduling Problems with Sort and Sweep

Merge Intervals Pattern: Solve Scheduling Problems with Sort and Sweep

TLDR: Sort intervals by start time, then sweep left-to-right and merge any interval whose start ≤ the current running end. O(n log n) time, O(n) space. One pattern — three interview problems solved. šŸ“– When Two Meetings Overlap: The Scheduling Prob...

Mar 29, 2026•13 min read

Abstract Algorithms

Exploring the fascinating world of algorithms, data structures, and software engineering through clear explanations and practical examples.

Navigate

  • Home
  • Guided Topics
  • Interview Prep
  • About

Ā© 2026 Abstract Algorithms. All rights reserved.

Powered by Hashnode