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

Fix the prepend method for the LinkedList #47

Merged
merged 4 commits into from
Jun 4, 2018

Conversation

m-maksyutin
Copy link
Contributor

Hi, this is a small fix for the following issue:
If you will try to prepend an item to the empty list, the list will have wrong tail.

@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #47   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          83     83           
  Lines        1827   1830    +3     
  Branches      322    323    +1     
=====================================
+ Hits         1827   1830    +3
Impacted Files Coverage Δ
src/data-structures/linked-list/LinkedList.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 91d4714...8d85d3d. Read the comment docs.

@trekhleb
Copy link
Owner

trekhleb commented Jun 4, 2018

Cool! Thank you for the fix @m-maksyutin

@trekhleb trekhleb merged commit beb8501 into trekhleb:master Jun 4, 2018
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.

5 participants