Skip to content

Commit 1bf0388

Browse files
authored
Update bogo_sort.py (TheAlgorithms#8144)
1 parent 126e89d commit 1bf0388

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: sorts/bogo_sort.py

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ def bogo_sort(collection):
3131
"""
3232

3333
def is_sorted(collection):
34-
if len(collection) < 2:
35-
return True
3634
for i in range(len(collection) - 1):
3735
if collection[i] > collection[i + 1]:
3836
return False

0 commit comments

Comments
 (0)