File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 8585
8686[ 我看过的 100 本书] ( https://github.com/greyireland/awesome-programming-books-1 )
8787
88- ## 后续
88+ ## 更新计划
8989
9090持续更新中,觉得还可以的话点个 ** star** 收藏呀 ⭐️~
9191
9292【 Github 】[ https://github.com/greyireland/algorithm-pattern ] ( https://github.com/greyireland/algorithm-pattern ) ⭐️
93+
94+ ## 完成打卡
95+
96+ 完成计划之后,可以提交 Pull requests,在下面添加自己的项目仓库,完成自己的算法模板打卡呀~
97+
98+ | 完成 | 用户 | 项目地址 |
99+ | ---- | ------------------------------------------------- | ------------------------------------------------------------------- |
100+ | ✅ | [ wardseptember] ( https://github.com/wardseptember ) | [ notes(Java 实现)] ( https://github.com/wardseptember/notes ) |
101+ | 🕒 | [ dashidhy] ( https://github.com/dashidhy ) | [ algorithm-pattern-python(Python 实现)] ( https://github.com/dashidhy/algorithm-pattern-python ) |
Original file line number Diff line number Diff line change @@ -379,7 +379,8 @@ func hasCycle(head *ListNode) bool {
379379 fast := head.Next
380380 slow := head
381381 for fast != nil && fast.Next != nil {
382- if fast.Val == slow.Val {
382+ // 比较指针是否相等(不要使用val比较!)
383+ if fast == slow {
383384 return true
384385 }
385386 fast = fast.Next .Next
You can’t perform that action at this time.
0 commit comments