题目: 给定一个二叉树和一个目标和,找到所有从根节点到叶子节点路径总和等于给定目标和的路径。 来源: https://leetcode-cn.com/problems/path-sum-ii/ 法一: 自己的代码, 没有官方题解 思路: 递归实现,类似前序遍历 # 执行用时 :44 ms, 在所有 ...
分类:
其他好文 时间:
2019-12-07 16:32:33
阅读次数:
92
题目链接:http://codeforces.com/problemset/problem/600/E You are given a rooted tree with root in vertex 1. Each vertex is coloured in some colour. Let's c ...
分类:
其他好文 时间:
2019-12-07 12:33:58
阅读次数:
105
回流一定引起重绘,重绘不一定引起回流。 回流:回流也被称为重排,重排更让人形象易懂(即重排整个页面)。当render tree中的一部分或全部因为元素的尺寸规模、布局、隐藏等改变时,浏览器会重新渲染部分DOM或全部DOM的过程。 重绘:当页面元素样式改变不影响元素在文档流中的位置时(如backgro ...
分类:
其他好文 时间:
2019-12-07 12:21:06
阅读次数:
83
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example ...
分类:
其他好文 时间:
2019-12-07 12:18:43
阅读次数:
81
"Contest Link" easy: ABDGIJ medium easy: E medium: H medium hard: CF A. Cool number 各数位之和不大,枚举即可。 E. Binary Search Tree 考虑 DP,$f[u]$ 表示以 $u$ 为根,极大合法连通 ...
分类:
其他好文 时间:
2019-12-07 10:55:11
阅读次数:
88
HTML加载时发生了什么 在页面加载时,浏览器把获取到的HTML代码解析成1个DOM树,DOM树里包含了所有HTML标签,包括display:none隐藏,还有用JS动态添加的元素等。 浏览器把所有样式(用户定义的CSS和用户代理)解析成样式结构体 DOM Tree 和样式结构体组合后构建rende ...
分类:
其他好文 时间:
2019-12-07 10:44:21
阅读次数:
93
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note:You may assume k is always valid, 1 ≤ k ≤ BST's ...
分类:
其他好文 时间:
2019-12-07 10:18:19
阅读次数:
76
Heap package DataStructures.Heaps; /** * Interface common to heap data structures.<br> * <p>Heaps are tree-like data structures that allow storing ele ...
分类:
其他好文 时间:
2019-12-06 21:37:42
阅读次数:
98
SELECT top(10) * from (SELECT sys.fn_cdc_map_lsn_to_time([__$start_lsn]) 'addtime',* FROM cdc.dbo_TM_Room_CT)awhere 0=0 列名 数据类型 说明 __$start_lsn binary ...
分类:
数据库 时间:
2019-12-06 19:04:03
阅读次数:
239