码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Monit监控工具的使用
官方网址:http://mmonit.com/monit/ 当前版本:5.10 源代码包:http://mmonit.com/monit/dist/ 二进制包:http://mmonit.com/monit/dist/binary/ 概述 Monit是一款功能非常丰富的进程、文件、目录和设备的监测软件,适用于Linux/Unix平台。它可以自动修复那些已经停止运作的程序,特别适合处理...
分类:其他好文   时间:2014-12-05 00:50:22    阅读次数:441
Binary Tree post order traversal
One: Using two stacks, stack to traversal the node, stackr to record the parent node when visiting its right-child; https://oj.leetcode.com/problems.....
分类:其他好文   时间:2014-12-05 00:30:18    阅读次数:158
二叉树学习二:二叉搜索树
二叉搜索树(Binary Search Tree),或者是一棵空树,或者: 1)若它的左子树不空,则左子树上所有结点的值均小于它的根结点的值; 2)若它的右子树不空,则右子树上所有结点的值均大于它的根结点的值; 3)二叉搜索树的左、右子树也分别为二叉搜索树。 搜索二叉树相关的算法实现: ...
分类:其他好文   时间:2014-12-05 00:29:50    阅读次数:213
[leetcode]Convert Sorted Array to Binary Search Tree
问题描述: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 基本思想: 二分法构建二差排序树。 代码: TreeNode *subsortedArrayToBST(vector & num,int begin, int end) /...
分类:其他好文   时间:2014-12-04 23:18:01    阅读次数:189
LeetCode[Tree]: Sum Root to Leaf Numbers
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 represents the number 123. Find the total sum ...
分类:其他好文   时间:2014-12-04 21:39:20    阅读次数:209
【LeetCode】Unique Binary Search Trees
题意: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's....
分类:其他好文   时间:2014-12-04 21:38:52    阅读次数:244
Leetcode: Binary Tree Postorder Traversal
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:其他好文   时间:2014-12-04 21:29:50    阅读次数:104
Leetcode: Binary Tree Inorder Traversal
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:其他好文   时间:2014-12-04 21:25:46    阅读次数:139
Leetcode: Binary Tree Preorder Traversal
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].Not...
分类:其他好文   时间:2014-12-04 21:21:05    阅读次数:153
[LeetCode]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. 简单的思想:正序排列时,某节点的右节点一定是该节点的右子树,中序排列,某节点的左节点一定是该节点的左子树; ...
分类:其他好文   时间:2014-12-04 18:03:12    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!