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.node Example:markdown Input: n: 13 k: 2 Output: 10 Explanation: The lex
相關文章
相關標籤/搜索