Pow(x, n)(recursive, iterative)
Input:
2.00000, 10
Output:
1024.00000Input:
2.10000, 3
Output:
9.26100Input:
2.00000, -2
Output:
0.25000
Explanation:
2
-2
= 1/2
2
= 1/4 = 0.25PreviousRange Minimum Query (Square Root Decomposition and Sparse Table)NextRange Sum Query 2D - Immutable(matrix)
Last updated