All Problems

Pow(x, n)

MediummathExpected: O(log n) time, O(1) spaceInterview Context
bit-manipulation

Problem

Implement pow(x, n), which calculates x raised to the power n.

Loading...