NeetCode #941LC-440HardMath & Geometry
← Back to All Problems

#941 · #440 · K-th Smallest in Lexicographical Order(字典序的第 K 小数字)

📌 Problem Statement & Constraints

Given integers n and k, return the k-th number in the lexicographical ordering of the integers 1..n. Constraints: 1 <= k <= n <= 10^9.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!