Skip to content

Commit ed0553b

Browse files
committed
Removed the test cases
1 parent d2fc777 commit ed0553b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
def lexicalOrder(n: int) -> str:
2-
"""
3-
Generate numbers in lexical order from 1 to n and return them as a space-separated string.
42

5-
>>> lexicalOrder(13)
6-
'1 10 11 12 13 2 3 4 5 6 7 8 9'
7-
>>> lexicalOrder(1)
8-
'1'
9-
>>> lexicalOrder(20)
10-
'1 10 11 12 13 14 15 16 17 18 19 2 20 3 4 5 6 7 8 9'
11-
>>> lexicalOrder(25)
12-
'1 10 11 12 13 14 15 16 17 18 19 2 20 21 22 23 24 25 3 4 5 6 7 8 9'
13-
"""
143
ans = []
154
stack = [1]
165

@@ -28,8 +17,5 @@ def lexicalOrder(n: int) -> str:
2817
return " ".join(ans)
2918

3019
if __name__ == "__main__":
31-
32-
from doctest import testmod
3320

34-
testmod()
3521
print(f"Numbers from 1 to 25 in lexical order: {lexicalOrder(25)}")

0 commit comments

Comments
 (0)