Cosmos: Add bubble sort

Created on 1 Oct 2017  路  23Comments  路  Source: OpenGenus/cosmos

Add the code for bubble sort in any language ( C, C++, Java, Go, Python or any other)

The code should be placed at code/sorting/bubble sort

Note: multiple contributors can work on this issue as it has multiple parts (languages)

Your pull request will be reviewed by maintainers instantly.

For contribution guidelines, see this

If you need any help, let us know.

Hacktoberfest add code new algorithm

Most helpful comment

I want to ;)

All 23 comments

I want to :)

Sure. Go ahead. 馃憤

I will work on it for c language

Sure. 馃憤

I would like to work on python if possible

I will do the java version

#18
for JavaScript
Also added insertion sort

Hi I am trying to learn Rust language. Will that be accepted if I submit Rust versions of these algorithms?
Thanks!

I've already added the code for Bubble Sort in Java :)

Yes, @choudhary001 go for it.

I want to ;)

Go ahead 馃憤

I want to do it for C++

@charul97 Bubble sort in C++ has been pushed. Kindly take a look at other requirements or make a pull request to make improvements to the existing code. (see)

35

I created a pull request for an improvement to the existing code. Instead of doing it in procedural way, I've implemented it such that it's implemented as a function. Using it is as simple as bubble_sort(our_vector);

i wanna add the code in c++

106

I made this pullrequest to also improve the existing code.
bubble_sort.cpp was not compiling, and I then added another commit to improve the coding style

Looks good 馃憤

Added Rust implementation #588

@AdiChat the C# code wasnt compiling, made it compile and refactored it a bit!

i can do this in c..

i can do it ruby

Please assign it to me I want to do this in java and c++
@AdiChat

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arnavb picture arnavb  路  3Comments

athangkanos picture athangkanos  路  4Comments

qoo2p5 picture qoo2p5  路  4Comments

arnavb picture arnavb  路  3Comments

rhendz picture rhendz  路  4Comments