Skip to content

Conversation

@PauLopNun
Copy link

This PR adds a function to compute (base^exponent) % mod efficiently in Kotlin using iterative binary exponentiation. The function handles large exponents without overflow issues. Example usage is included in the main() function.

This PR adds a function to compute (base^exponent) % mod efficiently in Kotlin
using iterative binary exponentiation. The function handles large exponents
without overflow issues. Example usage is included in the main() function.
@PauLopNun PauLopNun closed this by deleting the head repository Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant