Pow(x, n)

Solution
Verifying access...

Time Complexity

O(log n)

Space Complexity

O(1)