Problem 50 · Medium

Pow(x, n)

Compute x raised to power n efficiently using binary exponentiation.

Open the interactive visualisation