From 1ecf54aaa63a90048d9f14b8a30a6f11969b15a8 Mon Sep 17 00:00:00 2001 From: Abhijit Singh Date: Sun, 21 Jun 2026 21:20:54 +0530 Subject: [PATCH] chore: add type hints to pancake_sort --- sorts/pancake_sort.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sorts/pancake_sort.py b/sorts/pancake_sort.py index e5d600738435..de2a596e46a8 100644 --- a/sorts/pancake_sort.py +++ b/sorts/pancake_sort.py @@ -8,8 +8,10 @@ python pancake_sort.py """ +from typing import Any -def pancake_sort(arr): + +def pancake_sort(arr: list[Any]) -> list[Any]: """Sort Array with Pancake Sort. :param arr: Collection containing comparable items :return: Collection ordered in ascending order of items