Domanda di colloquio di Amazon

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

Risposta di colloquio

Anonimo

23 set 2015

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

6