Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up
分类:
其他好文 时间:
2016-01-31 09:34:38
阅读次数:
204
Using DFS to traverse the tree. 4 cases for each node in the tree: case 1: it's a leaf node, set a pointer pointing to the node. We're reaching an end
分类:
其他好文 时间:
2016-01-30 09:37:00
阅读次数:
204
题目: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:Given the below binary tree and
分类:
其他好文 时间:
2016-01-29 11:56:46
阅读次数:
123
题目描述: 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
分类:
编程语言 时间:
2016-01-27 23:11:07
阅读次数:
165
题目描述:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).Fo...
分类:
编程语言 时间:
2016-01-21 23:56:00
阅读次数:
388
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up...
分类:
其他好文 时间:
2016-01-20 06:22:51
阅读次数:
158
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2016-01-18 11:57:22
阅读次数:
177
在CreateIndex时,必须慎重考虑属性FillFactor 和 PAD_INDEX的设置,这两个属性只在create index 或 rebuild index时起作用,表示Index page(Leaf-Level或 intermediate-Level)的填充程度。如果设置FillFact...
分类:
其他好文 时间:
2016-01-16 22:34:05
阅读次数:
725
contiguous 是物理位置上连续,相邻近的意思,DBCC SHOWCONTIG 命令的作用就是presentation data page(heap)或 leaf level page(B-Tree)的物理位置的信息,如果Page物理位置不连续,那么就会出现fragmentationThe D...
分类:
数据库 时间:
2016-01-14 14:18:24
阅读次数:
311
https://leetcode.com/problems/sum-root-to-leaf-numbers/Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a n...
分类:
其他好文 时间:
2016-01-11 22:16:10
阅读次数:
136