01 · Question
Implement pow(x, n), which calculates x raised to the power n (i.e., x^n).
Use fast exponentiation to achieve O(log n).
01 · Question
Implement pow(x, n), which calculates x raised to the power n (i.e., x^n).
Use fast exponentiation to achieve O(log n).