Skip to content

Conversation

vannu07
Copy link

@vannu07 vannu07 commented Oct 11, 2025

Implement recursive Bubble Sort algorithm with doctests

Describe your change

Added a recursive implementation of the Bubble Sort algorithm with proper type hints and doctests for automated verification.


Changes made

  • Added new file: sorting/bubble_sort_recursive.py
  • Implemented bubble_sort_recursive() function.
  • Added detailed docstring with doctests.
  • Added type hints for parameters and return values.
  • Verified using doctest, ruff, and mypy (all passed).

Checklist

  • I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md).
  • This pull request is all my own work — I have not plagiarized.
  • I know that pull requests will not be merged if they fail automated tests.
  • This PR only changes one algorithm file.
  • All new Python files are placed inside an existing directory (sorting/).
  • All filenames are lowercase and contain no spaces or dashes.
  • All function and variable names follow Python naming conventions.
  • All function parameters and return values have type hints.
  • All functions include doctests that pass automated testing.
  • Includes at least one reference link to Wikipedia or similar explanation.

Reference

🔗 [Bubble Sort — Wikipedia](https://en.wikipedia.org/wiki/Bubble_sort)

vannu07 and others added 3 commits October 11, 2025 14:20
Implement recursive Bubble Sort algorithm with doctests.
Refactor bubble_sort_recursive to use built-in list type and improve return statement.
@algorithms-keeper algorithms-keeper bot added awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass and removed tests are failing Do not merge until tests pass labels Oct 11, 2025
@vannu07
Copy link
Author

vannu07 commented Oct 11, 2025

Hi team,

I see that all checks have passed for this PR, and it adheres to the contribution guidelines, including the addition of doctests and type hints.

Could a maintainer please review it and, if appropriate, apply the hacktoberfest-accepted label? This would ensure the contribution counts towards Hacktoberfest.

Thanks for your time and for maintaining this great repository!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant