Pow(x, n) at Microsoft

Medium38.2% acceptance

This problem has 62.5% frequency at Microsoft.

Problem Description

Implement [pow(x, n)](<http://www.cplusplus.com/reference/valarray/pow/>), which calculates `x` raised to the power `n` (i.e., `xn`).

Read full problem and hints

Topics

Also asked at 22 companies


More Microsoft Questions

View all Microsoft questions