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

Refactor QuickSortInPlace #239

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yavorski
Copy link
Contributor

  • Sort in-place without copying the orignal input
  • Remove recursiveCall param from sort method as not needed anymore
  • Extract partitionArray function to class method
  • Remove swap function - use destructuring instead
  • Call visitingCallback with the right arguments - in this case with pivot

* Sort in place without copying the orignal input
* Remove `recursiveCall` param from `sort` method as not needed anymore
* Extract `partitionArray` function to class method
* Remove `swap` function - use destructuring instead
* Call `visitingCallback` with the right arguments - in this case with `pivot`
@codecov
Copy link

codecov bot commented Oct 27, 2018

Codecov Report

Merging #239 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #239   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         143    143           
  Lines        2552   2545    -7     
  Branches      422    421    -1     
=====================================
- Hits         2552   2545    -7
Impacted Files Coverage Δ
.../algorithms/sorting/quick-sort/QuickSortInPlace.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e0e571...eaa274c. Read the comment docs.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.

None yet

1 participant