LeetCode440. 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.code Note: 1 ≤ k ≤ n ≤ 109.ci Example:leetcode Input: n: 13 k: 2 Output: 10 Explanation: The lexic
相關文章
相關標籤/搜索