mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-12-19 02:07:27 +08:00
Update sorts/bead_sort.py
This commit is contained in:
@@ -3,6 +3,8 @@ Bead sort only works for sequences of non-negative integers.
|
||||
https://en.wikipedia.org/wiki/Bead_sort
|
||||
"""
|
||||
|
||||
from itertools import pairwise
|
||||
|
||||
|
||||
def bead_sort(sequence: list) -> list:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user