We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Line 120
protected void addAfter(Node u, Node v) { v = u.next.next; u.next = v; if (u == tail) tail = v; }
the v=u.next.next; seems wrong, this function will only delete the node after u
v=u.next.next;
The text was updated successfully, but these errors were encountered:
The solution is to make v = u.next.next; --> v.next = u.next;
v = u.next.next;
v.next = u.next;
Sorry, something went wrong.
No branches or pull requests
Line 120
the
v=u.next.next;
seems wrong, this function will only delete the node after uThe text was updated successfully, but these errors were encountered: