-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
fix: make interface of NCRModuloP
fail-safe
#2469
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
realstealthninja
merged 24 commits into
TheAlgorithms:master
from
vil02:bug_in_ncr_modulo_p_patch
Aug 31, 2024
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d28c25c
fix: set proper size of fac
vil02 5864c5a
style: use std::size_t as a type of loop counter
vil02 81b3e7b
style: use uint64_t as a type of loop counter
vil02 21b2771
fix: remove p from the argument list of NCRModuloP::ncr
vil02 69f48b9
refactor: add utils namespace
vil02 e3b71c5
refactor: use references in gcdExtended
vil02 4672baa
refactor: add NCRModuloP::computeFactorialsMod
vil02 d712dc8
style: make NCRModuloP::ncr const
vil02 a13dff8
test: reorganize tests
vil02 af191b5
test: add missing test cases
vil02 d29c96f
refactor: simplify logic
vil02 334d91e
style: make example object const
vil02 478edd5
style: use auto
vil02 80b69db
style: use int64_t to avoid narrowing conversions
vil02 63e9d5b
docs: update explanation why to import iostream
vil02 e67ec3e
docs: remove `p` from docstr of `NCRModuloP::ncr`
vil02 94a475c
docs: udpate doc-strs and add example()
vil02 6bf8ccf
Apply suggestions from code review
vil02 c4d1f34
dosc: add missing docs
vil02 857e53d
feat: display message when all tests pass
vil02 d44c270
style: initialize `NCRModuloP::p` with `0`
vil02 3e0fb86
Merge branch 'master' into bug_in_ncr_modulo_p_patch
realstealthninja 756c9cf
Merge branch 'master' into bug_in_ncr_modulo_p_patch
vil02 dc6360d
Merge branch 'master' into bug_in_ncr_modulo_p_patch
realstealthninja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.