CS Vis
  • Algorithms
    • Graphs & Trees
    • Sorting
    • Searching & Arrays
    • Dynamic Programming
    • Divide & Conquer
    • Greedy Algorithms
  • Theory
    • Computation
    • Complexity
  • Regular Languages
    • DFA
    • NFA
    • DFA → Regex
  • Context-Free Languages
    • CFG
    • PDA
    • CFG → CNF
  • Turing Machine
  • Testing
    • Combinatorial
    • Control FlowNew
    • SubsumptionNew
  • FAQ
  • About
  • Contact
Algorithms
  • Graphs & Trees
  • Sorting
  • Searching & Arrays
  • Dynamic Programming
  • Divide & Conquer
  • Greedy Algorithms
CS Vis
  • Turing Machine
Algorithms
  • Graphs & Trees
  • Sorting
  • Searching & Arrays
  • Dynamic Programming
  • Divide & Conquer
  • Greedy Algorithms
Theory
  • Computation
  • Complexity

Regular Languages

  • DFA
  • NFA
  • DFA → Regex

Context-Free Languages

  • CFG
  • PDA
  • CFG → CNF
Testing
  • Combinatorial
  • Control FlowNew
  • SubsumptionNew
  • FAQ
  • About
  • Contact

Preferences

Language
Theme
All Domains

Divide & Conquer

Recursively break problems into smaller subproblems, solve each, then combine results.

Tower of Hanoi

Recursively move a stack of disks between pegs using an auxiliary peg.

Closest Pair of Points

Finds the two closest points in a 2D plane in O(n log n) time.

Maximum Subarray (D&C)

Finds the max-sum subarray by dividing the array and combining across the midpoint.

Median of Two Sorted Arrays

Finds the median of two sorted arrays in O(log n) via binary search.

Request more
Missing something? Get in touch and we'll add it.
Home·About·FAQ·What's New
·Credits·Privacy Policy

© 2026 CSVisualizer.com