sorts.strand_sort ================= .. py:module:: sorts.strand_sort Functions --------- .. autoapisummary:: sorts.strand_sort.strand_sort Module Contents --------------- .. py:function:: strand_sort(arr: list, reverse: bool = False, solution: list | None = None) -> list Strand sort implementation source: https://en.wikipedia.org/wiki/Strand_sort :param arr: Unordered input list :param reverse: Descent ordering flag :param solution: Ordered items container Examples: >>> strand_sort([4, 2, 5, 3, 0, 1]) [0, 1, 2, 3, 4, 5] >>> strand_sort([4, 2, 5, 3, 0, 1], reverse=True) [5, 4, 3, 2, 1, 0]