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

Added cocktail_shaker_sort to python #351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akshayram1
Copy link

Description

This commit introduces the Cocktail Shaker Sort algorithm to our codebase. Cocktail Shaker Sort is an efficient variation of the Bubble Sort that sorts a list by iterating through it in both directions. This bidirectional approach allows it to effectively place the largest and smallest unsorted elements in their correct positions more quickly, especially in nearly sorted lists.

@kelvins
Copy link
Owner

kelvins commented Oct 15, 2024

Could you please fix the linter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants