Exercise[12]
- Study A Powerful Trick
- Study pow (Java or JavaScript?). Make sure you have actually called the Java or JavaScript versions of pow with various argument values. Try to find argument values that cause pow to return the wrong answer.
- If you were able to find any argument values that cause pow to return the wrong answer, try to improve the implementation of pow. If you're not sure how to implement an improvement in Java or JavaScript, try to at least explain (using English) what you would do to improve the code.
- Read Comment carefully and find the error. (Comment: It's not too hard to find!)