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

Dice Combinations #164

Closed
dahiya-code opened this issue Oct 1, 2021 · 1 comment
Closed

Dice Combinations #164

dahiya-code opened this issue Oct 1, 2021 · 1 comment

Comments

@dahiya-code
Copy link
Contributor

Your task is to count the number of ways to 
construct sum n by throwing a dice one or more times. 
Each throw produces an outcome between 1 and 6.

For example, if n=3, there are 4 ways:
1+1+1
1+2
2+1
3

Solution in CPP

@dahiya-code
Copy link
Contributor Author

Submitted PR

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

No branches or pull requests

1 participant