Java
gx262091291
这个作者很懒,什么都没留下…
展开
-
LeetCode 16 3Sum Closest
3Sum ClosestGiven an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that e原创 2015-08-05 22:35:27 · 347 阅读 · 0 评论 -
LeetCode 39 && 40 Combination Sum I && II 关键在于剪枝,剪枝讨论在末尾
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited numb原创 2015-12-08 20:38:46 · 447 阅读 · 0 评论 -
328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.You should try to do it in原创 2016-06-25 19:08:12 · 295 阅读 · 0 评论 -
Leetcode 55 Jump Game && 45 Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine i原创 2016-01-15 16:19:12 · 356 阅读 · 0 评论 -
LeetCode 43 Multiply Strings
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative.Subscribe t原创 2015-12-22 13:57:02 · 316 阅读 · 0 评论 -
LeetCode 42 Trapping Rain Water
Trapping Rain WaterGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given原创 2015-12-18 11:06:58 · 329 阅读 · 0 评论