-
Notifications
You must be signed in to change notification settings - Fork 302
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
selection_sort.cpp: Add cpp implementation for selection sort. #483
Conversation
Hey @yashasingh, TravisCI finished with status TravisBuddy Request Identifier: d94ab390-dbc2-11e8-8e0f-4de0fcdedaae |
bb08738
to
e9a30b1
Compare
cout << "Enter the length of the array (less than 100)- "; | ||
cin >> n; | ||
cout << "Enter space separated " << n << " numbers- "; | ||
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.
Missing space before { [whitespace/braces] [5]
Origin: CPPLintBear, Section: all.cpplint
.
return 0; | ||
} | ||
|
||
void selection_sort(int arr[], int n){ |
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.
Missing space before { [whitespace/braces] [5]
Origin: CPPLintBear, Section: all.cpplint
.
int i, j, temp; | ||
for(i = 0; i < n; i++) | ||
for(j = i+1; j < n; j++){ | ||
if(arr[i]>arr[j]){ |
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.
Missing spaces around > [whitespace/operators] [3]
Origin: CPPLintBear, Section: all.cpplint
.
e9a30b1
to
648326d
Compare
648326d
to
861f5b5
Compare
Hey @yashasingh, TravisCI finished with status TravisBuddy Request Identifier: 14344410-dbc5-11e8-8e0f-4de0fcdedaae |
Hey @yashasingh, TravisCI finished with status TravisBuddy Request Identifier: cdff9700-dbc5-11e8-8e0f-4de0fcdedaae |
861f5b5
to
f587db5
Compare
Hey @yashasingh, TravisCI finished with status TravisBuddy Request Identifier: 53429480-dbc6-11e8-8e0f-4de0fcdedaae |
@sangamcse Please review my PR! |
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.
Also, update README table. Keep both README and selection_sort.cpp in the same commit.
f587db5
to
615f29b
Compare
c44dc5e
to
517f959
Compare
@sangamcse Please review! |
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.
Everything is fine except one in the README and your commit head is more than 50 characters and commit body is more than 72 characters. Make them correct
3bc37ea
to
ecb4e10
Compare
@sangamcse I have updated the commit message but regarding the redundant issue in README.md, the line was already poor indented. Updating the same reflects it as a bigger change. |
Create one issue about README table. That will become one newcomer issue. And for this issue, remove the extra blank line that you have added. :) |
ecb4e10
to
0650886
Compare
@sangamcse Required changes have been made. Please review 🙂 |
README.md
Outdated
@@ -71,4 +71,4 @@ Feel free to contact us at our [Gitter channel](https://gitter.im/NITSkmOS/algo) | |||
## Notes | |||
|
|||
Only project maintainers should merge a PR. | |||
Other members can add their reviews to a PR but the merging should be done by only a project maintainer. | |||
Other members can add their reviews to a PR but the merging should be done by only a project maintainer. |
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.
Now, what happened with this one?
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.
This must have happened since this branch had conflicts due to prior merging of other PRs.
Also, rebase your branch |
Implementation of Cpp selection sort for NITSkmOS/Algorithms. closes NITSkmOS#482
0650886
to
a5277bd
Compare
@sangamcse Branch rebased. Please review. 🙂 |
ack a5277bd |
@sangamcse ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
This commit adds the Cpp implementation of selection sort for NITSkmOS/Algorithms.
closes #482
For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!
Fixes #482
By submitting this pull request I confirm I've read and complied with the
below declarations.
{Tag}: Add {Algorithm/DS name} [{Language}]
, notUpdate README.md
orAdded new code
.After you submit your pull request, DO NOT click the 'Update Branch' button.