[leetcode 440]K-th Smallest in Lexicographical Order

Given integers n and k, find the lexicographically k-th smallest integer in the range from 1 to n.java Note: 1 ≤ k ≤ n ≤ 109.spa Example:code Input: n: 13 k: 2 Output: 10 Explanation: The lexicogr
相關文章
相關標籤/搜索