Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 238 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 238 Bytes

The problem

Implement pow(x, n), which calculates x raised to the power n (i.e., x^n).

Example 1:

Input: x = 2.00000, n = 10
Output: 1024.00000

Example 2:

Input: x = 2.10000, n = 3 Output: 9.26100