Java icon indicating copy to clipboard operation
Java copied to clipboard

Create ModularExponentiation.java

Open lulunac27a opened this issue 1 year ago • 5 comments

Add modular exponentiation in Java

  • [x] I have read CONTRIBUTING.md.
  • [x] This pull request is all my own work -- I have not plagiarized it.
  • [x] All filenames are in PascalCase.
  • [x] All functions and variable names follow Java naming conventions.
  • [x] All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • [x] All new code is formatted with clang-format -i --style=file path/to/your/file.java

lulunac27a avatar Mar 30 '24 03:03 lulunac27a

Add tests and code if y (power) is 0, return 1

lulunac27a avatar Mar 30 '24 20:03 lulunac27a

I think you also want to throw an exception for y < 0.

vil02 avatar Apr 02 '24 18:04 vil02

@lulunac27a please fix all of the errors from the CI and please have a look at my previous comment.

vil02 avatar Apr 03 '24 16:04 vil02

Fixed errors by formatting code and changing function name to modPow

lulunac27a avatar Apr 04 '24 00:04 lulunac27a

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!

github-actions[bot] avatar May 05 '24 00:05 github-actions[bot]

Please reopen this pull request once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution!

github-actions[bot] avatar May 12 '24 00:05 github-actions[bot]