Binary Exponentiation for a^b

This commit is contained in:
Chinmoy Das 2017-10-08 13:00:13 +05:30 committed by GitHub
parent a36ca7c42f
commit f4c6578ece

View File

@ -1,5 +1,5 @@
"""
* Binary Exponentiation
* Binary Exponentiation for Powers
* This is a method to find a^b in a time complexity of O(log b)
* This is one of the most commonly used methods of finding powers.
* Also useful in cases where solution to (a^b)%c is required,