-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Count_Inversion.cpp #2442
Count_Inversion.cpp #2442
Conversation
@somya-kapoor Mam please check I had created a fresh new commit with the updated file. |
Count_Inversion/Count_Inversion.cpp
Outdated
int n; | ||
cin >> n; | ||
int arr[n]; | ||
for(int i=0; i<n; i++) |
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.
Please add space around the operator.
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.
Space is already present mam.
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.
It should be for(int i = 0; i < n; i++)
Count_Inversion/Count_Inversion.cpp
Outdated
int arr[n]; | ||
for(int i=0; i<n; i++) | ||
cin >> arr[i]; | ||
cout << (inversions_count(arr, n))<<endl; |
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.
Please add space around the <<
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.
Space is already present mam
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.
<<endl space is not present in it.
@somya-kapoor Mam please check now |
Count_Inversion/Count_Inversion.cpp
Outdated
int n; | ||
cin >> n; | ||
int arr[n]; | ||
for(int i=0; i < n; i++) |
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 = also
@somya-kapoor Please check again mam |
@mansikagrawal Good work. Looks good to me. Just squash the commits, then it will be ready to merge. |
@mansikagrawal Are you working on it? |
@somya-kapoor Mam I'll squash the commit today |
Fixes #1664
Checklist:
Changes proposed in this pull request:
Languages Used:
Files Added: