Skip to content

Commit d62b61f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c6f2646 commit d62b61f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_structures/stacks/lexicographical_numbers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ def lexical_order(n: int) -> str:
1919
num = stack.pop()
2020
if num > n:
2121
continue
22-
22+
2323
ans.append(str(num))
24-
if (num % 10) != 9:
24+
if (num % 10) != 9:
2525
stack.append(num + 1)
2626

2727
stack.append(num * 10)
2828

2929
return " ".join(ans)
3030

31+
3132
if __name__ == "__main__":
32-
3333
from doctest import testmod
3434

3535
testmod()

0 commit comments

Comments
 (0)