Abstract AlgorithmsAbstract Algorithms

  • Home
  • All Posts
  • All Series
  • About

Category

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.

Mar 29, 2026•16 min read

Abstract Algorithms

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

Navigation

  • Home
  • All Posts
  • All Series
  • About

Series

  • Data Structures and Algorithms
  • LLM Engineering
  • Machine Learning Fundamentals

Popular Topics

  • algorithms
  • coding interview
  • data structures
  • Java
  • Heaps
  • Machine Learning

Author

Abstract Algorithms

Abstract Algorithms

@abstractalgorithms

1 followers on Hashnode

© 2026 Abstract Algorithms. All rights reserved.

Powered by Hashnode