mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
Binary Exponentiation for a^b
This commit is contained in:
parent
a36ca7c42f
commit
f4c6578ece
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user