![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
Roosevelty
这个作者很懒,什么都没留下…
展开
-
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the length is 3. Given "bbbbb", the answer is "b", with原创 2017-03-07 18:06:41 · 399 阅读 · 0 评论 -
路径综合2 lc113
给定一个二叉树和一个目标和,找到所有从根节点到叶子节点路径总和等于给定目标和的路径。 说明:叶子节点是指没有子节点的节点。 示例: 给定如下二叉树,以及目标和sum = 22, 返回: 这道题目没什么太大难度,主要是一些启发。比如在类似leetcode 这种只给一个函数,固定输入输出类型的情况下,如何使用自己顺手的搜索方式,还有传参问题。具体看代码: /** * Defini...原创 2019-03-10 11:29:51 · 246 阅读 · 0 评论