-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
bug(linked-list): insert
method duplicates value of head in tail
#1016
Comments
@mg901 be careful if you are running insert to the middle, then the solution proposed above would fail, creating infinite loop with the next insert. Try running the below to see it failing:
|
@xyn22 I tried to take into account all test cases.
|
Repository owner
deleted a comment
Apr 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, guys! Thank you for this awesome repository! The other day I found this problem
returns
It solved if you add this code after line 77.
The text was updated successfully, but these errors were encountered: