VISUALGO
//
Problems
Playground
Learn
/
Playground
Sorting
Bogo Sort
VISUALGO
//
SORT
reshuffle-until-lucky · sorting trace console · O((n+1)!)
●
UNSORTED
●
SORTED
Goal:
Rearrange all elements in
ascending order
using bogo sort.
8
5
7
2
4
6
1
3
SPEED — 20
RUN
ELEMENTS
SET
NEW SHUFFLE
READOUT
attempts
0
odds / shuffle
1 / 40,320
status
IDLE