LinkedIn interview question

pow( a, b)

Interview Answer

Anonymous

8 May 2012

You need to handle cases for positive and negative base, and exponent. Also need an algorithm better than O(b).