Skip to content

Conversation

@2400031832
Copy link

Added time and space complexity analysis to the selection_sort function docstring.

Related to #13948 - Documentation inconsistencies

Describe your change:

  • Documentation change?

Changes:

  • Added Time Complexity: O(n^2) to selection_sort docstring
  • Added Space Complexity: O(1) to selection_sort docstring

This improves documentation consistency by adding complexity analysis that helps beginners understand the algorithm's performance characteristics.

Checklist:

  • I have read 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 the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.

Added time and space complexity analysis to the docstring.
@algorithms-keeper algorithms-keeper bot added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels Nov 25, 2025
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 enhancement This PR modified some existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant