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

[Feature Request]: Adding cocktail_sort in sorting Algorithms #269

Closed
4 tasks done
k-harpreet opened this issue Oct 27, 2024 · 2 comments
Closed
4 tasks done

[Feature Request]: Adding cocktail_sort in sorting Algorithms #269

k-harpreet opened this issue Oct 27, 2024 · 2 comments
Assignees
Labels
Contributor gssoc-ext hacktoberfest Issues or PRs that qualify for Hacktoberfest contributions. level1

Comments

@k-harpreet
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

Cocktail Sort is an improved version of Bubble Sort. It also goes through the list, but it moves in both directions. First, it sorts from left to right, pushing the largest unsorted item to the end. Then, it reverses and sorts from right to left, pushing the smallest unsorted item to the beginning.
Cocktail Sort is often better for large or partly sorted lists because it reduces the number of passes needed.

Record

  • I agree to follow this project's Code of Conduct
  • I want to work on this issue
  • I'm willing to provide further clarification or assistance if needed.

Full Name

Harpreet Kaur

Participant Role

GSOC

Copy link
Contributor

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!

Copy link
Contributor

github-actions bot commented Nov 5, 2024

✅ This issue has been closed. Thank you for your contribution! If you have any further questions or issues, feel free to join our community on Discord to discuss more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor gssoc-ext hacktoberfest Issues or PRs that qualify for Hacktoberfest contributions. level1
Projects
None yet
Development

No branches or pull requests

2 participants