LeetCode
bluedavid1988
这个作者很懒,什么都没留下…
展开
-
初窥门径 LeetCode
# Title Acceptance Difficulty 200 Number of Islands 23.0% Medium 199 Binary Tree Right Side View 27.4% Medium 198 House Robber 28.3%转载 2015-04-10 00:20:51 · 387 阅读 · 0 评论 -
001 Two Sum
Given 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 two numbers such that they add up to the target, whe原创 2015-04-10 00:21:49 · 164 阅读 · 0 评论 -
167 Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two number原创 2015-04-10 00:22:28 · 191 阅读 · 0 评论 -
170 Two Sum III - Data structure design
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure. find - Find if there exists any pair of numbers原创 2015-04-10 00:25:55 · 259 阅读 · 0 评论