N-th root of a numberGiven two numbers n and m, find the n-th root of m. In mathematics, the n-th root of a number m is a real number that, when raised to the power of n, gives m. If no such real number exists, return -1.Examples: Input: n = 2, m = 9Output: 3Explanation: 32 = 9Input: n = 3, m = 9Output: -1Explanation: 3
9 min read
Cube RootsA cube root of a number a is a value b such that when multiplied by itself three times (i.e., b \times b \times b), it equals a. Mathematically, this is expressed as:b3 = a, where a is the cube of b.Cube is a number that we get after multiplying a number 3 times by itself. For example, 125 will be t
7 min read