Skip to content
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

Added permutation (npr) and combination (cpr) functions #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ameliaWhitlow
Copy link

As brought up in issue #15, I added two functions: npr and cpr for permutations and combinations respectively. They both take two values (n and x) and return the number of possible arrangements for x of the n items. The difference between them is that npr distinguishes between the ordering of the x items and cpr doesn't.

@chu-space
Copy link

LGTM!

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.

2 participants