摘要:
题目:https://www.nowcoder.com/practice/d8566e765c8142b78438c133822b5118?tpId=46&tqId=29071&tPage=3&rp=3&ru=/ta/leetcode&qru=/ta/leetcode/question-rankin 阅读全文
posted @ 2017-01-22 19:39
Kobe10
阅读(1850)
评论(0)
推荐(0)
摘要:
原题:https://www.nowcoder.com/practice/ed2923e49d3d495f8321aa46ade9f873?tpId=46&tqId=29065&tPage=3&rp=3&ru=/ta/leetcode&qru=/ta/leetcode/question-rankin 阅读全文
posted @ 2017-01-22 16:16
Kobe10
阅读(1603)
评论(0)
推荐(0)
摘要:
原题:https://www.nowcoder.com/practice/1b0b7f371eae4204bc4a7570c84c2de1?tpId=46&tqId=29077&tPage=3&rp=3&ru=/ta/leetcode&qru=/ta/leetcode/question-rankin 阅读全文
posted @ 2017-01-22 14:32
Kobe10
阅读(7058)
评论(0)
推荐(0)
摘要:
1.判断单链表是否有环 使用两个slow, fast指针从头开始扫描链表。指针slow 每次走1步,指针fast每次走2步。如果存在环,则指针slow、fast会相遇;如果不存在环,指针fast遇到NULL退出。 就是所谓的追击相遇问题: 2.求有环单链表的环长 在环上相遇后,记录第一次相遇点为Po 阅读全文
posted @ 2017-01-22 10:53
Kobe10
阅读(256)
评论(0)
推荐(0)

浙公网安备 33010602011771号