POTD: 440. K-th Smallest in Lexicographical Order
Given integers n and k, find the k-th smallest number in lexicographical order from 1 to n. The approach involves calculating steps between lexicographical numbers and intelligently skipping subtrees, avoiding memory issues caused by storing all numbers.