Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sorts/pancake_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
python pancake_sort.py
"""

from collections.abc import MutableSequence

def pancake_sort(arr):

def pancake_sort(arr: MutableSequence[int]) -> MutableSequence[int]:
"""Sort Array with Pancake Sort.
:param arr: Collection containing comparable items
:return: Collection ordered in ascending order of items
Expand Down