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

short bubble sort #108

Merged
merged 7 commits into from
Aug 31, 2015
Merged

short bubble sort #108

merged 7 commits into from
Aug 31, 2015

Conversation

evandroeisinger
Copy link
Contributor

yay! i added a bubble sort single loop implementation 🎱

var current = array[i];
var next = array[i+1];

if (next === undefined) break;
Copy link
Owner

Choose a reason for hiding this comment

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

Can't you remove this if if you iterate until i < length - 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup!

@evandroeisinger
Copy link
Contributor Author

@felipernb, ready for revision 🎅

@felipernb
Copy link
Owner

Nice!
👍

felipernb added a commit that referenced this pull request Aug 31, 2015
@felipernb felipernb merged commit 979ea1c into felipernb:master Aug 31, 2015
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