mediumNeetCode 150
Pow(x, n)
Calculate x raised to the power n Example: x = 2.0, n = 10 => 1024.0 Example: x = 2.0, n = -2 => 0.25
Pow(x, n) rewards structured search and good pruning more than raw cleverness. Interviewers love it because it reveals your structured exploration and your edge-case discipline. The gotcha is duplicates and dead ends—good pruning and ordering rules make this manageable.
Math & Geometry

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.
1Pow(x, n)medium
Based onLeetCode