Leaving LeetCode
You're leaving LeetCode for an external site that may pose security risks. Continue?
https://leetcode.com/problems/powx-n/solutions/1869646/fast-power-algorithm-binary-exponentiation/
Continue