3 ms·The exponentiate function is in linear time, so it's O(n). Too bad, it could be O(log n)...by marcosdumay 13y agoThe exponentiate function is in linear time, so it's O(n). Too bad, it could be O(log n)...