

'nth' root of an integer 'm' is a number, which, when raised to the power 'n', gives 'm' as a result.
Input: ‘n’ = 3, ‘m’ = 27
Output: 3
Explanation:
3rd Root of 27 is 3, as (3)^3 equals 27.
The first line of the input consists of two space-separated integers, n and m.
Return an integer that denotes the nth root of m in a separate line. If such an integer doesn't exist return -1.
You don't have to print anything. It has already been taken care of. Just Implement the given function.
The idea for this approach is to use binary search to find an integer equal to ‘M’ when multiplied by itself ‘N’ times.
The exponential function is an increasing function (i.e., monotonic), and thus, using binary search, we will try out different possible square roots; let’s suppose we are currently on ‘X’, then we will find
To find the value of ‘XN’, we can use a loop, which will iterate ‘N’ times.
function NthRoot(int n, int m):
Pair Product Div by K
Pair Product Div by K
Merge Two Sorted Arrays Without Extra Space
Merge Two Sorted Arrays Without Extra Space
Co-Prime
First Digit One
Special Digit Numbers