Intermediate·Concept·2 min read

Sorting and searching

Practice this question

Sorting

  • Bubble sort
  • Selection sort
  • Insertion sort
  • Merge sort
  • Quick sort
  • Heap sort

Searching

  • Linear search
  • Binary search
  • Search in rotated sorted array
  • Search in 2D matrix
  • Search insert position

Common patterns

  • Binary search on sorted array
  • Binary search with custom condition
  • Partitioning logic for quicksort

Adapted from 14_DSA_MASTER.md · “13. Sorting and searching”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.