You are given a multiplication table of size m×n, where each element at position mat[i][j] is calculated as i×j (with 1-based indexing).
Your task is to find the kth smallest element in this table, given the m, n, and k values.
Constraints:
We need to find the kth smallest number in a multiplication table of size m×n, where the element at the position (i,j) is the product i×j. A direct approach to constructing the multiplication table and sorting the numbers would be inefficient. Instead of building the table explicitly, we can use the sorted properties of the multiplication table and binary search to find the ...