摘要: Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the... 阅读全文
posted @ 2014-05-14 22:38 陆草纯 阅读(6917) 评论(0) 推荐(1) 编辑
摘要: Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解法一:使用unordered_map记录当前节点... 阅读全文
posted @ 2014-05-14 22:18 陆草纯 阅读(326) 评论(0) 推荐(0) 编辑