Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.8k
added-ModularArithmetic-code#1217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
added-ModularArithmetic-code#1217
Uh oh!
There was an error while loading.Please reload this page.
Conversation
appgurueu left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The modulus should not be hardcoded. Rather this should be a class (something like "ModRing"…) instantiated using the modulus (new ModRing(modulus)) providing the modular arithmetic operations as methods (ring.add(a, b)).
Alternatively you could consider a classModRingNumber with a constructor takingnum, mod params and the methods performing modular arithmetic after asserting that themods of the numbers match.
hiitesh1127 commentedOct 19, 2022
Thank you Sir for your suggestions |
hiitesh1127 commentedOct 19, 2022
Sir Please review@raklaptudirm |
Uh oh!
There was an error while loading.Please reload this page.
Describe your change:
Checklist:
Example:
UserProfile.jsis allowed butuserprofile.js,Userprofile.js,user-Profile.js,userProfile.jsare notFixes: #{$ISSUE_NO}.