Amr Saberblog.amrsaber.io·Dec 5, 2022Fast Power AlgorithmWhen we need to calculate the value of some number base raised to the power of another number exp we can do so naively using the following algorithm: def power(base, exp): result := 1 for i = 1 to exp: result *= base return result The pro...12 likes·199 readsProblem Solvingproblem solving skillsAdd a thoughtful commentNo comments yetBe the first to start the conversation.