Skip to content

Commit f4c6578

Browse files
authored
Binary Exponentiation for a^b
1 parent a36ca7c commit f4c6578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

other/binary_exponentiation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
* Binary Exponentiation
2+
* Binary Exponentiation for Powers
33
* This is a method to find a^b in a time complexity of O(log b)
44
* This is one of the most commonly used methods of finding powers.
55
* Also useful in cases where solution to (a^b)%c is required,

0 commit comments

Comments
 (0)