摘要: Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?求链表是否有环的问题,要考虑链表为空的情况,定义一个快指针和一个慢指针,如果快指针和... 阅读全文
posted @ 2014-06-01 23:33 OpenSoucre 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Search Insert PositionTotal Accepted:15484Total Submissions:44816Given a sorted array and a target value, return the index if the target is found. If ... 阅读全文
posted @ 2014-06-01 22:30 OpenSoucre 阅读(276) 评论(0) 推荐(0) 编辑