码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
leetcode Same Tree python
# Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
分类:编程语言   时间:2015-12-07 00:23:43    阅读次数:248
leetcode Binary Tree Postorder Traversal python
# Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
分类:编程语言   时间:2015-12-07 00:12:08    阅读次数:164
leetcode Binary Search Tree Iterator python
# Definition for a binary tree node# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
分类:编程语言   时间:2015-12-06 22:45:41    阅读次数:292
leetcode Maximum Depth of Binary Tree python
# Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
分类:编程语言   时间:2015-12-06 17:33:21    阅读次数:155
leetcode Minimum Depth of Binary Tree python
# Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
分类:编程语言   时间:2015-12-06 15:56:34    阅读次数:160
1102. Invert a Binary Tree (25)
反转二叉树就是左右节点互换层遍历使用队列实现中序遍历递归实现The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you ca...
分类:其他好文   时间:2015-12-06 13:06:49    阅读次数:224
1099. Build A Binary Search Tree (30)
freopen("Text.txt", "r", stdin); 输入输出重定向,神器建立二叉树,注意中序遍历和指针的使用 时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is ...
分类:其他好文   时间:2015-12-06 13:04:17    阅读次数:140
1086. Tree Traversals Again (25)
时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yuepush 的顺序就是二叉树的前序pop的顺序就是二叉树的中序遍历本质上还是考根据这两个顺序建立二叉树,并且进行后序遍历An inorder binary tree traversal ...
分类:其他好文   时间:2015-12-06 12:59:53    阅读次数:152
1066. Root of AVL Tree (25)
时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAn AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two c...
分类:其他好文   时间:2015-12-06 12:48:00    阅读次数:135
1064. Complete Binary Search Tree (30)
根据中序遍历建立完全二叉树。时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is recursively defined as a binary tree which has t...
分类:其他好文   时间:2015-12-06 12:47:14    阅读次数:124
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!