码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
[LeetCode] Binary Tree Right Side View
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.For example: Given the following binary tree, 1...
分类:其他好文   时间:2015-04-30 14:17:56    阅读次数:118
OJ练习37——T190 Reverse Bits
把一个32位无符号整数按位翻转,For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary...
分类:其他好文   时间:2015-04-30 10:13:02    阅读次数:128
webDriver API——第9部分Firefox WebDriver
classselenium.webdriver.firefox.webdriver.WebDriver(firefox_profile=None,firefox_binary=None,timeout=30,capabilities=None,proxy=None)Bases:selenium.we...
分类:Windows程序   时间:2015-04-29 23:27:08    阅读次数:227
Binary Tree Inorder Traversal -- leetcode
Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. Note: Recursive solutio...
分类:其他好文   时间:2015-04-29 15:13:35    阅读次数:155
生成所有的BST
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 unique BST's shown below. 1 3 ...
分类:其他好文   时间:2015-04-29 13:32:36    阅读次数:126
Unity3D WebCamTexture 调用外部摄像头
一:Unity 中使用WebCamTexture 调用摄像头实现拍照和摄像。 using UnityEngine; using System.Collections; using System.IO; using System.Runtime.Serialization; using System.Runtime .Serialization.Formatters.Binary; using S...
分类:编程语言   时间:2015-04-29 11:41:29    阅读次数:324
LeetCode - Minimum Depth of Binary Tree
求二叉树的最小深度。/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) ...
分类:其他好文   时间:2015-04-29 01:57:40    阅读次数:114
LeetCode Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree {3,9,20,#,#,15,7}, 3 / 9 20 ...
分类:其他好文   时间:2015-04-29 00:47:26    阅读次数:142
codeforces #250E The Child and Binary Tree 快速傅里叶变换
题目大意:给定一个集合SS,对于i=1...mi=1...m求有多少二叉树满足每个节点的权值都在集合SS中且权值和为ii 构造答案多项式F(x)F(x)和集合SS的生成函数C(x)C(x),那么 根节点的左子树是一棵二叉树,右子树是一棵二叉树,本身的权值必须在集合S中,此外还有空树的情况 故有F(x)=F2(x)C(x)+1F(x)=F^2(x)C(x)+1 解得F(x)=1±1?4C(x)...
分类:其他好文   时间:2015-04-28 22:58:20    阅读次数:246
[LeetCode]*105.Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree....
分类:其他好文   时间:2015-04-28 22:52:42    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!