Personal Knowledge Base

Home

❯

main

❯

Sorting

Sorting

Jun 22, 20251 min read

Sorting is a useful technique for solving algorithm problems. The sorted data allows things like e.g, O(log n) searches.

Example Problems

  • Detecting duplicates
  • Detecting anagrams: two strings are anagrams if sorting them produces the same result
  • Merging intervals
  • Non-overlapping intervals

Graph View

Created with Quartz v4.5.1 © 2025