摘要: 关于链表的知识总结,参考原博客:http://www.cnblogs.com/hellogiser/p/linked-list-loop-and-intersections.html 一、链表是否带环: 判断链表是否带环,设置两个指针(fast, slow),初始值都指向头,slow每次前进一步,f 阅读全文
posted @ 2017-03-18 17:07 糯米米一粒 阅读(1372) 评论(0) 推荐(0) 编辑
摘要: Find the Duplicate Number: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one du 阅读全文
posted @ 2017-03-18 16:28 糯米米一粒 阅读(140) 评论(0) 推荐(0) 编辑