码迷,mamicode.com
首页 >  
搜索关键字:binary tree upside d    ( 23249个结果)
LeetCode——Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:其他好文   时间:2014-06-19 11:23:05    阅读次数:204
A Star not a Tree?
给n个点,求费马点到各点的距离和...
分类:其他好文   时间:2014-06-19 10:07:42    阅读次数:224
LeetCode: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. For example: Given the below binary tree and sum = 22, 5 ...
分类:其他好文   时间:2014-06-15 19:55:39    阅读次数:191
LeetCode——Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / 2 2 / \ / 3 4 4 3 But the f...
分类:其他好文   时间:2014-06-15 19:49:35    阅读次数:176
【Leetcode】Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [3,2,1]. Note: Recursive solut...
分类:其他好文   时间:2014-06-15 19:06:52    阅读次数:166
杭电 3711 Binary Number
Binary Number Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1287    Accepted Submission(s): 807 Problem Description For 2 non-negativ...
分类:其他好文   时间:2014-06-15 18:17:35    阅读次数:204
导出Excel2 - 项目分解篇
接上一篇《导出Excel1 - 项目分解篇》,介绍3个子过程。       1. treeADO           说明:把数据表字段转化为Tree结构                     声明:procedure treeADO(adoDataSetX:TADODataSet;tvTemplate1:TTreeView);          实现: proced...
分类:其他好文   时间:2014-06-15 15:45:40    阅读次数:182
论C/C++数据在内存中的二进制存放形式
// enter any type data to show Binary.c // 输入任意类型数据转换成二进制 // version: 1.0 // date: 2014.6.12 // BUG提交: yinjunwithu@outlook.com // 缺陷: 请勿使用vc 6.0编译 因为不支持long long及unsigned long long类型 // #define _CRT_...
分类:编程语言   时间:2014-06-15 09:44:48    阅读次数:414
LeetCode:Path Sum
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 sum. For example: Given the below bin...
分类:其他好文   时间:2014-06-15 09:34:35    阅读次数:226
leetcode -day28 Unique Binary Search Trees I II
1、 ?? Unique Binary Search Trees II Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 uni...
分类:其他好文   时间:2014-06-15 09:09:00    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!