mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Update bogo_sort.py (#8144)
This commit is contained in:
parent
126e89d8a3
commit
1bf03889c5
|
@ -31,8 +31,6 @@ def bogo_sort(collection):
|
|||
"""
|
||||
|
||||
def is_sorted(collection):
|
||||
if len(collection) < 2:
|
||||
return True
|
||||
for i in range(len(collection) - 1):
|
||||
if collection[i] > collection[i + 1]:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue
Block a user