Skip to content

Commit 9f73ccc

Browse files
committed
Fix docstring and improve input validation in kth_lexicographic_permutation
1 parent 68c846d commit 9f73ccc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

maths/kth_lexicographic_permutation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def kth_permutation(k, n):
4343
return permutation
4444

4545

46+
4647
if __name__ == "__main__":
4748
import doctest
4849

0 commit comments

Comments
 (0)