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

feat: improve gnome_sort #60

Closed
wants to merge 4 commits into from

Conversation

abeybernard
Copy link
Contributor

@abeybernard abeybernard commented Aug 11, 2023

The function now accepts a mutable reference to the array, avoiding the need for cloning. match expression is used for pattern matching. The i index is only decremented when necessary, reducing the number of assignments. Test cases now modify the array in place and check for correctness.

Abey Bernard added 4 commits July 27, 2023 12:20
…-algorithms into my-contribution

The function now accepts a mutable reference to the array, avoiding the need for cloning.
match expression is used for pattern matching.
The i index is only decremented when necessary, reducing the number of assignments.
Test cases now modify the array in place and check for correctness.
@alexfertel alexfertel changed the title The function now accepts a mutable reference to the array, avoiding the need for cloning. match expression is used for pattern matching. The i index is only decremented when necessary, reducing the number of assignments. Test cases now modify the array in place and check for correctness.My contribution feat: improve gnome_sort Aug 12, 2023
@alexfertel
Copy link
Owner

Closing for bookkeeping purposes!

@alexfertel alexfertel closed this Jan 20, 2024
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