LeetCode: https://leetcode.com/problems/powx-n/
Implement pow(x, n), which calculates x raised to the power n (i.e., x^n).
Use fast exponentiation to achieve O(log n).
idx
10
0
5
1
Step 1 / 3
Step 1:
Compute myPow(2, 10). Split into half exponent: myPow(2, 5).
Pointers: idx=0
Focus: select @ [0]