```/** * 94. Binary Tree Inorder Traversal * 1. Time:O(n) Space:O(n) * 2. Time:O(n) Space:O(n) * 3. Time:O(n) Space:O(1) */// 1. Time:O(n) Space:O(n)c... ...
分类:
其他好文 时间:
2020-04-27 13:26:00
阅读次数:
56
Bin:全称binary,用于存放二进制文件,可以被运行。 Dev:存放外接设备,在其中的设备需要挂载(类似windows下面的分配盘符)才能直接使用。 Etc:主要存储一些配置文件 Home:表示除了root用户以外的其他用户的家目录,类似windows下的user/用户用户。 Proc:proc ...
分类:
系统相关 时间:
2020-04-27 13:24:39
阅读次数:
106
Given two binary search trees, return True if and only if there is a node in the first tree and a node in the second tree whose values sum up to a giv ...
分类:
其他好文 时间:
2020-04-27 13:22:13
阅读次数:
61
```/** * 144. Binary Tree Preorder Traversal * 1. Time:O(n) Space:O(n) * 2. Time:O(n) Space:O(n) * 3. Time:O(n) Space:O(n) * 4. Time:O(n) Space:O(1) *... ...
分类:
其他好文 时间:
2020-04-27 13:11:07
阅读次数:
39
```/** * 145. Binary Tree Postorder Traversal * 1. Time:O(n) Space:O(n) * 2. Time:O(n) Space:O(n) * 3. Time:O(n) Space:O(n) * 4. Time:O(n) Space:O(1) ... ...
分类:
其他好文 时间:
2020-04-27 13:10:20
阅读次数:
48
``` /** * 102. Binary Tree Level Order Traversal * 1. Time:O(n) Space:O(n) * 2. Time:O(n) Space:O(n) */ // 1. Time:O(n) Space:O(n) class Solution { pu... ...
分类:
其他好文 时间:
2020-04-27 13:04:46
阅读次数:
47
337. 打家劫舍 III https://leetcode-cn.com/problems/house-robber-iii/ /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *T ...
分类:
其他好文 时间:
2020-04-26 11:12:02
阅读次数:
55
分治算法(1):二分查找!昨天刚说不写算法了,但是突然想起来没写过分治算法的博客,所以强迫症的我…… STL函数库第五弹——二分函数lower_bound()、upper_bound()、binary_search() 由于笔者比较懒,所以把分治算法(二分查找篇)和STL第五弹放在一起。。。 Par ...
分类:
编程语言 时间:
2020-04-26 01:42:28
阅读次数:
75
package LeetCode_930 /** * 930. Binary Subarrays With Sum * https://leetcode.com/problems/binary-subarrays-with-sum/description/ * * In an array A of ...
分类:
其他好文 时间:
2020-04-25 20:51:26
阅读次数:
54
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: ...
分类:
其他好文 时间:
2020-04-25 17:10:35
阅读次数:
72