Pow(x, n) at Meta
Medium38.2% acceptance
This problem has 87.5% frequency at Meta.
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 hintsTopics
Also asked at 22 companies
More Meta Questions
Basic Calculator IIMediumRandom Pick with WeightMediumAdd Two NumbersMediumMaximum SwapMediumK Closest Points to OriginMedium
View all Meta questions