Sollicitatievraag bij Amazon

Implement Math.pow(a, b) in java.

Antwoord op sollicitatievraag

Anoniem

23 sep 2015

1. Use recursion, be careful of edge cases with negatives and 0. 2. Improve efficiency by using properties of powers

6