Cosmos: Add Shaker sort in any language

Created on 9 Oct 2017  路  17Comments  路  Source: OpenGenus/cosmos

Add the code for Shaker sort in any language ( C, Java, Go, Python, JavaScript, Swift or any other)

The code should be placed at code/sorting/shaker_sort

Sample code in C++: see

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

All 17 comments

I'll implement in C#.

I will do a python implementation.

Ah, Python is taken, I'll do Java then! Do you guys want any functional language implementations, e.g. OCaml?

I will do a Objective-C implementation

I will do a C implementation

Sure @protostellarsun functional languages will be great 馃槃

@AdiChat I already finish the shaker implementation in Objective-C

Doing javascript implementation

I'm doing it in rust

I can do Swift!

I can do Golang.

Sure @Clorophila Go for it 馃憤

Can I add shaker sort in C++?

@warned101 Go for it!

I think that algorithm has already been implemented in C++.
shaker_sort.cpp
Please check and if there's something to be fixed in this, let me know!

@warned101 There are still things that can be fixed in that file (namely using namespace std;). Please consider fixing those problems.

Okay, I will take care of that!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skywalker212 picture skywalker212  路  3Comments

InfiniteCoder picture InfiniteCoder  路  3Comments

qoo2p5 picture qoo2p5  路  4Comments

arnavb picture arnavb  路  3Comments

rishavpandey43 picture rishavpandey43  路  3Comments