Skip to content

Files

Latest commit

7a7d3f2 · Oct 20, 2020

History

History
35 lines (18 loc) · 585 Bytes

File metadata and controls

35 lines (18 loc) · 585 Bytes

中文文档

Description

Given an integer n, return 1 - n in lexicographical order.

For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9].

Please optimize your algorithm to use less time and space. The input size may be as large as 5,000,000.

Solutions

Python3

Java

...