From bc810e9858d20db79d4f93ee5b6263c914832dd4 Mon Sep 17 00:00:00 2001 From: Parth Pawar Date: Wed, 14 Jan 2026 18:47:43 +0530 Subject: [PATCH 1/2] Fix return type description in bubble_sort.py Better (clearer, standard phrasing): :return: the same collection ordered in ascending order --- sorts/bubble_sort.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sorts/bubble_sort.py b/sorts/bubble_sort.py index 9ec3d5384f38..425d2a44e275 100644 --- a/sorts/bubble_sort.py +++ b/sorts/bubble_sort.py @@ -6,7 +6,8 @@ def bubble_sort_iterative(collection: list[Any]) -> list[Any]: :param collection: some mutable ordered collection with heterogeneous comparable items inside - :return: the same collection ordered by ascending + :return: the same collection ordered in ascending order + Examples: >>> bubble_sort_iterative([0, 5, 2, 3, 2]) From e1b57923908673f97b8ad91fb341254e8f0dbfb7 Mon Sep 17 00:00:00 2001 From: Maxim Smolskiy Date: Mon, 9 Mar 2026 08:27:20 +0300 Subject: [PATCH 2/2] Update bubble_sort.py --- sorts/bubble_sort.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sorts/bubble_sort.py b/sorts/bubble_sort.py index 425d2a44e275..e18d18f850e0 100644 --- a/sorts/bubble_sort.py +++ b/sorts/bubble_sort.py @@ -8,7 +8,6 @@ def bubble_sort_iterative(collection: list[Any]) -> list[Any]: comparable items inside :return: the same collection ordered in ascending order - Examples: >>> bubble_sort_iterative([0, 5, 2, 3, 2]) [0, 2, 2, 3, 5]