ABHISHEK-AMRUTE / CP_Algorithms_hacktoberfest

Collection of All CP algorithms
16 stars 69 forks source link

Added binExponentiation Code - Js #101

Closed Kalyan-1707 closed 3 years ago

Kalyan-1707 commented 3 years ago

binExponentiation returns the value raised to its power in O(log n) time complexity.

It even works for -ve powers too.

Output

image