Skip to content

Fixed issue in LinkedList insert(_:, at:) method where next?.previous… #724

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

Merged
merged 1 commit into from
Jun 11, 2018

Conversation

highborncow
Copy link
Contributor

… was referencing next itself.

Checklist

Description

Small fix in the insert(_ list: LinkedList, at index: Int) method of the LinkedList class.
In the LinkedList Swift file (line 169) and the Playground page (line 179), the previous property of the next node was being set to the next node itself, instead of the inserted list's last node.

@kelvinlauKL
Copy link
Member

Looks good. After the CI finishes running, I'll merge it in. Thanks a lot!

@kelvinlauKL kelvinlauKL merged commit 548413a into kodecocodes:master Jun 11, 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.

3 participants