CoursesDSA FoundationsRecursion
Boss: Pow(x, n)
Beat the boss with fast exponentiation: halve the exponent to compute pow in O(log n).
Loading the lesson…
Loading the lesson…
CoursesDSA FoundationsRecursion
Beat the boss with fast exponentiation: halve the exponent to compute pow in O(log n).
Loading the lesson…
Loading the lesson…