Company: Media Net .
Difficulty: medium
A lot to Merge Problem Description Nebula gave Groot an integer N and M and an algorithm to construct a matrix of size N*M. The matrix is constructed as follows: The entry at the intersection of i'th row and j'th column will be i*j. Once Groot is done making the matrix, Nebula asked him to take all the elements of the matrix and arrange them in ascending order. Now Nebula gave Groot an integer K and asked Groot to find the K'th element in the arranged list. Input Format: Three integers N, M and K Output Format: Value of the K'th element in the sorted list of N*M elements Examples Example 1: Input: N = 2, M = 2, K = 2 Output: 2 Explanation: Constraints 1 <= N, M <= 10^4 1 <= K <= N*M