CoursesDSA FoundationsRecursion

Boss: Pow(x, n)

Beat the boss with fast exponentiation: halve the exponent to compute pow in O(log n).

BossComplete codeCode orderMultiple choiceTrace8 exercises, 8 min

Loading the lesson…