Files
ADDALA MATHEW 32a3d0d0bb Fix doctest bug in bubble_sort_recursive - incorrect function call (#13821)
Fixed bug in bubble_sort_recursive docstring where the doctest was calling bubble_sort_iterative([]) instead of bubble_sort_recursive([]). This was a copy-paste error that would cause the doctest to pass even if bubble_sort_recursive had issues with empty lists.

Change:
- Line 71: Changed '>>> bubble_sort_iterative([])' to '>>> bubble_sort_recursive([])'

This ensures the doctest properly validates the recursive implementation.

Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
2026-03-09 20:28:01 +03:00
..
2024-04-20 16:20:27 +02:00
2025-10-15 19:22:51 +02:00
2023-03-01 17:23:33 +01:00
2025-10-15 19:35:55 +02:00
2025-08-26 21:42:14 +03:00
2025-07-06 01:35:29 +03:00
2020-10-15 13:45:17 +02:00
2023-09-23 10:53:09 +02:00
2023-10-03 22:06:52 -04:00
2025-08-31 01:17:55 +03:00
2023-10-03 22:05:47 -04:00
2025-07-06 01:35:29 +03:00
2020-09-25 09:18:00 +02:00

Sorting Algorithms

Sorting is the process of putting data in a specific order. The way to arrange data in a specific order is specified by the sorting algorithm. The most typical orders are lexical or numerical. The significance of sorting lies in the fact that, if data is stored in a sorted manner, data searching can be highly optimised. Another use for sorting is to represent data in a more readable manner.

This section contains a lot of important algorithms that help us to use sorting algorithms in various scenarios.

References