Google interview question

Implement a function that calculates power x y

Interview Answers

Anonymous

9 Feb 2014

Very easy to implement the straight forward solution, but tricky to get the best implementation.

Anonymous

21 Apr 2016

What is the preferred answer?