mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
leetcode problem
This commit is contained in:
parent
9b69e29b66
commit
a583154172
@ -9,10 +9,10 @@ Leetcode reference: https://leetcode.com/problems/lexicographical-numbers/
|
||||
|
||||
def lexical_order(n: int) -> list[int]:
|
||||
"""
|
||||
>>> lexicalOrder(13)
|
||||
>>> lexical_order(13)
|
||||
[1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
|
||||
>>> lexicalOrder(2)
|
||||
>>> lexical_order(2)
|
||||
[1, 2]
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user