- 博客(3)
- 收藏
- 关注
原创 leetcode 113. Path Sum II【回溯】
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.Note:A leaf is a node with no children.Example:Given the below binary tree andsum = 22,...
2019-06-10 23:52:01 212
原创 leetcode 92. Reverse Linked List II
https://leetcode.com/problems/reverse-linked-list-ii/难度还好,和之前的反转链表没本质区别,把头尾拆出来即可关于stack存储,和汪童鞋中午吃饭讨论说起来 存listnode肯定更好一些Reverse a linked list from positionmton. Do it in one-pass.Note:1 ≤m...
2019-06-09 16:58:45 106
原创 93. Restore IP Addresses
https://leetcode.com/problems/restore-ip-addresses/貌似这个题是去年年底刷了,半天没写出来搁浅了?WA了一次 没考虑0000TLE了一次应该事先判断长度Given a string containing only digits, restore it by returning all possible valid IP addres...
2019-06-08 14:35:16 149
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人