-
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
Add Bubble Sort in C #144
Add Bubble Sort in C #144
Conversation
bubble_sort/C/bubble_sort.c
Outdated
@@ -0,0 +1,47 @@ | |||
#include <stdio.h> | |||
|
|||
void bubble_sort(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.
Extra space before [ [whitespace/braces] [5]
Origin: CPPLintBear, Section: all.cpp
.
bubble_sort/C/bubble_sort.c
Outdated
#include <stdio.h> | ||
|
||
void bubble_sort(int [], int); | ||
void print_array(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.
Extra space before [ [whitespace/braces] [5]
Origin: CPPLintBear, Section: all.cpp
.
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.
Change your commit message according to the contribution guide.
Use git commit --amend
instead of git commit
.
for further help: http://ohshitgit.com/
8f8b55a
to
138ac8d
Compare
bubble_sort/C/bubble_sort.c
Outdated
} | ||
} | ||
|
||
/* If no two wlements are swapped by inner loop, then break */ |
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.
wlements
--> elements
138ac8d
to
5d3041f
Compare
Comment on 5d3041f, file euclidean_gcd/C/euclidean_gcd.c, line 6. Missing space before ( in while( [whitespace/parens] [5] Origin: CPPLintBear, Section: |
This adds Bubble Sort algorithm written in C. Closes NITSkmOS#19
5d3041f
to
257c37e
Compare
ack 257c37e |
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!
Closes #19
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.