Implement pow(x, n), which raises x to the integer power n, running in O(log n) time.
Practise this challenge
All coding challenges