Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeeBombshell/Python-DSA
/ bogo_sort
Function
bogo_sort
Sorting Algorithms/bogosort.py:6–9 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
4
5
6
def
bogo_sort(a):
7
n = len(a)
8
while
(is_sorted(a) == False):
9
shuffle(a)
10
11
# To check if array is sorted or not
12
Callers
1
bogosort.py
File · 0.85
Calls
2
is_sorted
Function · 0.85
shuffle
Function · 0.85
Tested by
no test coverage detected