Skip to content

Conversation

@yaadhuu
Copy link

@yaadhuu yaadhuu commented Jan 22, 2026

Describe your change:

  • Fix a bug or typo in an existing algorithm?

This pull request improves the clarity and robustness of
kth_lexicographic_permutation without changing the underlying algorithm.
It fixes a docstring inconsistency, corrects a minor comment typo, and
replaces assert with explicit input validation following Python best
practices. All existing doctests continue to pass.

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.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.

@algorithms-keeper algorithms-keeper bot added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels Jan 22, 2026
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