added sorting exercise

This commit is contained in:
2024-01-30 05:01:05 +01:00
parent 8ed82e01aa
commit da878ec3e6
5 changed files with 229 additions and 0 deletions

9
loops/sort/sort.py Normal file
View File

@ -0,0 +1,9 @@
from typing import Iterator, Optional
def selection_sort[T](xs: Iterator[T]) -> Iterator[T]:
return []
def binary_search[T](xs: list[T], value: T) -> Optional[int]:
return None