#50

Pow(x, n)

medium· Math & Geometryruns: 0

Implement pow(x, n) which calculates x raised to the power n. The implementation must run in O(log n) time.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.