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
请问一下如果这个节点正好是尾节点的时候该怎么处理啊?
The text was updated successfully, but these errors were encountered:
if (!node || !node->next) { return; } node->val = node->next->val; node->next = node->next->next;
这是我的代码,在尾节点的时候,并没有做到删除效果啊- -+
Sorry, something went wrong.
The solution does not deal with memory. The removed node is not deleted in this solution.
No branches or pull requests
请问一下如果这个节点正好是尾节点的时候该怎么处理啊?
The text was updated successfully, but these errors were encountered: