LinkedIn Interview Question

pow( a, b)

Interview Answer

Anonymous

May 8, 2012

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