算法
huaangsu
这个作者很懒,什么都没留下…
展开
-
Sum Root to Leaf Numbers
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum原创 2013-03-22 20:38:56 · 479 阅读 · 0 评论 -
leetcode Permutations II
Permutations IIMar 17 '121277 / 3449 Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutation原创 2013-05-10 17:00:02 · 390 阅读 · 0 评论 -
leetcode Jump Game II
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 po原创 2013-05-10 19:25:25 · 465 阅读 · 0 评论 -
leetcode Combination Sum II
Combination Sum II Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be原创 2013-05-11 14:39:50 · 490 阅读 · 0 评论 -
Max Points on a Line LEETCODE
Max Points on a Line Total Accepted: 289 Total Submissions: 3644 Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. /** * Definition原创 2013-11-24 19:25:33 · 1212 阅读 · 3 评论