- Notifications
You must be signed in to change notification settings - Fork98
Create QuickSort.js#38
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Added Quick sort
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Great! Thanks for adding it.
SortingAlgorithms/QuickSort.js Outdated
@@ -0,0 +1,42 @@ | |||
var items = [5,3,7,6,2,9]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
ok. Got it.
SortingAlgorithms/QuickSort.js Outdated
} | ||
// first call to quick sort | ||
var sortedArray = quickSort(items, 0, items.length - 1); | ||
console.log(sortedArray); //prints [2,3,5,6,7,9] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Could you remove these examples and add them to a file within thetest
folder? It could use a few test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
ok
Added Quick sort