* Add type hints to pancake_sort function
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Use modern list[int] type hint instead of deprecated typing.List
* Update pancake_sort to use Sequence and TypeVar
Refactor pancake_sort function to accept any sequence type.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Make pancake_sort generic with type parameter T
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: changsheng <changsheng0804-blip@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>