From f11c5ec217f63c6d1a1ef1dcff93729b1c919a68 Mon Sep 17 00:00:00 2001 From: Catherine Maria Date: Fri, 12 Dec 2025 14:09:42 +0530 Subject: [PATCH 1/2] docs: expand bubble sort explanation --- sorts/bubble_sort.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sorts/bubble_sort.py b/sorts/bubble_sort.py index 9ec3d5384f38..66453edde8cd 100644 --- a/sorts/bubble_sort.py +++ b/sorts/bubble_sort.py @@ -4,6 +4,11 @@ def bubble_sort_iterative(collection: list[Any]) -> list[Any]: """Pure implementation of bubble sort algorithm in Python + Sort a list of numbers in ascending order using the bubble sort algorithm. + Bubble sort repeatedly steps through the list, compares adjacent elements, + and swaps them if they are in the wrong order. This process continues until + the list is fully sorted. + :param collection: some mutable ordered collection with heterogeneous comparable items inside :return: the same collection ordered by ascending From b61c5ac64a1890491c0ae9a3ee34a8204f02c328 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 12 Dec 2025 08:49:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sorts/bubble_sort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sorts/bubble_sort.py b/sorts/bubble_sort.py index 66453edde8cd..775d8c55d058 100644 --- a/sorts/bubble_sort.py +++ b/sorts/bubble_sort.py @@ -5,8 +5,8 @@ def bubble_sort_iterative(collection: list[Any]) -> list[Any]: """Pure implementation of bubble sort algorithm in Python Sort a list of numbers in ascending order using the bubble sort algorithm. - Bubble sort repeatedly steps through the list, compares adjacent elements, - and swaps them if they are in the wrong order. This process continues until + Bubble sort repeatedly steps through the list, compares adjacent elements, + and swaps them if they are in the wrong order. This process continues until the list is fully sorted. :param collection: some mutable ordered collection with heterogeneous