Implement pow(x, n) which calculates x raised to the power n. Handle negative exponents.
Input: x=2.0, n=10 Output: 1024.0 Input: x=2.1, n=3 Output: 9.261 Input: x=2.0, n=-2 Output: 0.25
Unlock hints progressively β start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features