cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Add bubble sort

Open AdiChat opened this issue 9 years ago • 23 comments

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.

AdiChat avatar Oct 01 '17 12:10 AdiChat

I want to :)

gautam2705 avatar Oct 01 '17 12:10 gautam2705

Sure. Go ahead. 👍

AdiChat avatar Oct 01 '17 12:10 AdiChat

I will work on it for c language

jainkeval avatar Oct 01 '17 12:10 jainkeval

Sure. 👍

AdiChat avatar Oct 01 '17 12:10 AdiChat

I would like to work on python if possible

shashank-sharma avatar Oct 01 '17 12:10 shashank-sharma

I will do the java version

n0zg avatar Oct 01 '17 12:10 n0zg

#18 for JavaScript Also added insertion sort

ahhmarr avatar Oct 01 '17 12:10 ahhmarr

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

choudhary001 avatar Oct 01 '17 12:10 choudhary001

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

n0zg avatar Oct 01 '17 12:10 n0zg

Yes, @choudhary001 go for it.

AdiChat avatar Oct 01 '17 12:10 AdiChat

I want to ;)

Sanyam96 avatar Oct 01 '17 13:10 Sanyam96

Go ahead 👍

AdiChat avatar Oct 01 '17 13:10 AdiChat

I want to do it for C++

charul97 avatar Oct 01 '17 13:10 charul97

@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)

AdiChat avatar Oct 01 '17 13:10 AdiChat

#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);

endiliey avatar Oct 01 '17 13:10 endiliey

i wanna add the code in c++

trshimpi avatar Oct 01 '17 14:10 trshimpi

#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

leodevo avatar Oct 01 '17 22:10 leodevo

Looks good 👍

AdiChat avatar Oct 03 '17 04:10 AdiChat

Added Rust implementation #588

Jay9596 avatar Oct 05 '17 15:10 Jay9596

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

iamraghavs avatar Oct 13 '17 16:10 iamraghavs