two pointer
文章平均质量分 88
leetcode
qq184861643
这个作者很懒,什么都没留下…
展开
-
leetcode: Find the Duplicate Number
Question Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate ...原创 2018-02-09 16:03:06 · 155 阅读 · 0 评论 -
leetcode: Linked List
Question Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? Solution # Definition for singly-linked list. # class ListNode(object): # de...原创 2018-10-27 22:45:31 · 95 阅读 · 0 评论