![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
文章平均质量分 56
LCY天上殿
这个作者很懒,什么都没留下…
展开
-
LeetCode——Path Sum
第一题:Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example: Given the below binary t原创 2016-04-25 21:07:31 · 557 阅读 · 0 评论 -
LeetCode——backtracking分析
最近刷leetcode,在做到backtracking题目的时候总会有一些疑惑,其实对于backtracking题目都是很类似,代码也是有一定的模板的,这里总结一下: 一般的模板: 第一题:Subsets (题目)Given a set of distinct integers, nums, return all possible subsets. Note: The solution se原创 2016-09-05 18:22:57 · 662 阅读 · 0 评论