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 Partial Dearrangements #1403
Conversation
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.
Just a few changes...
return -1; | ||
} | ||
// We create a pascal triangle. | ||
int Pascal[r+1]; |
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.
Add space around +
.
int number; | ||
cin >> number; | ||
int k; | ||
cin >> k; |
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.
No need to add space around <<
and >>
in cout
and cin
statements.
|
||
var mod int = 1000000007 | ||
|
||
func nCr(n int, r int, mod int) int{ |
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.
Add space before {
.
Please review @marwahmanbir |
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.
Looks good. You can have a look @rishabhgarg25699
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.
@singh-shreya6 Approved .
Fixes #1399
Checklist:
Changes proposed in this pull request:
Languages Used:
Files Added: