Skip to content
ı
Workspace
Visualizer
Search anything…
⌘ K
Desk
Path
Problems
Review
More
Library
/
Cocktail Shaker Sort
sorting
Best
O(n)
Avg
O(n²)
Worst
O(n²)
Space
O(1)
Preparing Cocktail Shaker Sort...
Bidirectional variation of bubble sort that traverses back and forth to address turtle elements.