Skip to content

Added Intro Sort Algorithm #538

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

Merged
merged 11 commits into from
Oct 3, 2023
Merged

Added Intro Sort Algorithm #538

merged 11 commits into from
Oct 3, 2023

Conversation

cyrixninja
Copy link
Contributor

Description

I implemented the Intro Sort (also known as Introspective Sort) Algorithm in Rust.Prior it was only available in Python and JavaScript. I tested the algorithm and got no warnings from the clippy.

https://the-algorithms.com/algorithm/intro-sort
https://en.wikipedia.org/wiki/Introsort

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I ran bellow commands using the latest version of rust nightly.
  • I ran cargo clippy --all -- -D warnings just before my last commit and fixed any issue that was found.
  • I ran cargo fmt just before my last commit.
  • I ran cargo test just before my last commit and all tests passed.
  • I checked COUNTRIBUTING.md and my code follows its guidelines.

Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@siriak siriak merged commit a78d5d4 into TheAlgorithms:master Oct 3, 2023
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