Skip to content
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 Shaker sort in any language #991

Open
AdiChat opened this issue Oct 9, 2017 · 17 comments
Open

Add Shaker sort in any language #991

AdiChat opened this issue Oct 9, 2017 · 17 comments
Labels
add code Hacktoberfest new algorithm For issues pertaining to the creation of new algorithms

Comments

@AdiChat
Copy link
Member

AdiChat commented Oct 9, 2017

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.

@Jecoms
Copy link
Contributor

Jecoms commented Oct 9, 2017

I'll implement in C#.

@etrexel
Copy link
Contributor

etrexel commented Oct 9, 2017

I will do a python implementation.

@protostellarsun
Copy link
Contributor

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

@daipeihust
Copy link
Contributor

I will do a Objective-C implementation

@arpank10
Copy link
Contributor

arpank10 commented Oct 9, 2017

I will do a C implementation

@arpank10 arpank10 mentioned this issue Oct 9, 2017
@AdiChat
Copy link
Member Author

AdiChat commented Oct 9, 2017

Sure @protostellarsun functional languages will be great 😄

@daipeihust
Copy link
Contributor

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

@JorgeAndd
Copy link
Contributor

Doing javascript implementation

@Ondama
Copy link
Contributor

Ondama commented Oct 9, 2017

I'm doing it in rust

Jecoms added a commit to Jecoms/cosmos that referenced this issue Oct 9, 2017
added shaker sort for c#. For OpenGenus#991.
@JeffreyCA
Copy link
Contributor

I can do Swift!

@Clorophila
Copy link

I can do Golang.

Jecoms pushed a commit to Jecoms/cosmos that referenced this issue Oct 9, 2017
added fast inverse sqrt in c++

remove file

remove extra file

added shaker_sort for c#

added shaker sort for c#. For OpenGenus#991.
@AdiChat
Copy link
Member Author

AdiChat commented Oct 10, 2017

Sure @Clorophila Go for it 👍

Ondama added a commit to Ondama/cosmos that referenced this issue Oct 14, 2017
Ondama added a commit to Ondama/cosmos that referenced this issue Oct 14, 2017
Ondama added a commit to Ondama/cosmos that referenced this issue Oct 14, 2017
Ondama added a commit to Ondama/cosmos that referenced this issue Oct 14, 2017
@arnavb arnavb added the new algorithm For issues pertaining to the creation of new algorithms label Feb 25, 2019
@warned101
Copy link

Can I add shaker sort in C++?

@arnavb
Copy link
Member

arnavb commented Apr 5, 2019

@warned101 Go for it!

@warned101
Copy link

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!

@arnavb
Copy link
Member

arnavb commented Apr 8, 2019

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

@warned101
Copy link

Okay, I will take care of that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add code Hacktoberfest new algorithm For issues pertaining to the creation of new algorithms
Projects
None yet
Development

No branches or pull requests