The Wayback Machine - https://web.archive.org/web/20200906194219/https://github.com/greyireland/algorithm-pattern/issues/5/
Skip to content
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

链表是否有环的题目 ---linked-list-cycle 中有错误,直接使用了节点的值进行比较 #5

Open
mydream2018 opened this issue Jun 26, 2020 · 2 comments

Comments

@mydream2018
Copy link

@mydream2018 mydream2018 commented Jun 26, 2020

链表中的 linked-list-cycle 问题
直接使用了节点的值进行比较
应该使用内存地址比较。

@wardseptember
Copy link

@wardseptember wardseptember commented Jun 27, 2020

@mydream2018 那个没有问题,链表里面的值没有重复的,可以AC。

@greyireland
Copy link
Owner

@greyireland greyireland commented Jun 27, 2020

链表中的 linked-list-cycle 问题
直接使用了节点的值进行比较
应该使用内存地址比较。

OK,我修改下,完成了之后可以提交PR 打卡,我尽量给你们找BUG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.