Kotlin
Kotlin copied to clipboard
Add implementation of binary exponentiation
Binary Exponentiation allows for the computation of very high powers of numbers in O(log(n)) time complexity where n is the index of exponentiation. Added :
- Implementations of binary exponentiation for
Int,LongandBigInteger - Tests for all three implementations