Leetcode
文章平均质量分 52
serene0413
这个作者很懒,什么都没留下…
展开
-
Lc1 - Two sum
DescriptionGiven an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution.ExampleGiven nums = [原创 2016-09-21 00:42:28 · 333 阅读 · 0 评论 -
Lc 2 - Add Two Numbers
DescriptionYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it原创 2016-09-21 05:22:11 · 209 阅读 · 0 评论 -
Backtracking questions
下面列举了几种可以用backtracking算法解决的问题。第一题subset的解法可以作为基本框架,其他的题目都是在该框架上做少量修改。SubsetsLeetcode 78 Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain du转载 2016-09-26 02:50:06 · 252 阅读 · 0 评论