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
// 环状单向链表操作 if (queue.pending === null) { update.next = update; } else { update.next = queue.pending.next; queue.pending.next = update; } queue.pending = update;
既然queue.pending保存着上个update,next指向自己,是否也可写为
... } else { update.next = queue.pending; queue.pending.next = update; } ...
The text was updated successfully, but these errors were encountered:
按后一种写法3个节点及以上无法形成正确的环
Sorry, something went wrong.
谢谢大佬
No branches or pull requests
既然queue.pending保存着上个update,next指向自己,是否也可写为
The text was updated successfully, but these errors were encountered: