← Back

πŸƒ Card Shifting Parlor

Insert Each Card Into Its Proper Place!

Current Card

-

Comparisons

0

Shifts

0

Sorted Prefix

1

Status

Ready
🎰 Insertion Sort Table 🎰
Generate cards and watch insertion sort slide them into place!

πŸ“– Insertion Sort

How it works: Like sorting playing cards - pick each card and insert it into the sorted portion.

Time Complexity: O(nΒ²) worst/average, O(n) best (nearly sorted)

Space: O(1) - In-place

Best for: Small arrays or nearly sorted data