摘要:
关于链表的知识总结,参考原博客:http://www.cnblogs.com/hellogiser/p/linked-list-loop-and-intersections.html 一、链表是否带环: 判断链表是否带环,设置两个指针(fast, slow),初始值都指向头,slow每次前进一步,f 阅读全文
摘要:
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 阅读全文