Skip to content

Commit 3ef48c1

Browse files
author
Shreya
committed
Add missing type hints to pancake_sort
1 parent e3b01ec commit 3ef48c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sorts/pancake_sort.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
python pancake_sort.py
99
"""
1010

11+
from collections.abc import MutableSequence
1112

12-
def pancake_sort(arr):
13+
def pancake_sort(arr: MutableSequence[int]) -> MutableSequence[int]:
1314
"""Sort Array with Pancake Sort.
1415
:param arr: Collection containing comparable items
1516
:return: Collection ordered in ascending order of items

0 commit comments

Comments
 (0)