SORTING: NORMAL vs RECURSIVE (One-Page
Comparison Sheet)
Core Idea: Recursive sorting is the same logic as normal sorting, but the outer loop is replaced by
recursion.
INSERTION SORT
Feature Normal (Iterative) Recursive
Control for loop Recursive call
Base Case Not needed n <= 1
Logic Shift & insert key Same shift & insert
Space O(1) O(n) stack
Interview Use Preferred Rare
BUBBLE SORT
Feature Normal (Iterative) Recursive
Control Two loops One loop + recursion
Base Case Not needed n == 1
Logic Adjacent swaps Same adjacent swaps
Space O(1) O(n) stack
Use Case Practical Educational
Memory Tricks:
Bubble: Swap neighbors, biggest to end
Insertion: Shift and insert key
Recursive: Remove outer loop, add recursion