Kth Smallest Number in Multiplication Table
HardLeetCodeBinary Search on Answer
Approach hintTry it first, then revealHide
For a value x, row i holds min(x / i, n) entries not exceeding x. Binary search the smallest x for which the total count reaches k; that value is guaranteed to appear in the table.