Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-06-28 19:23:45
阅读次数:
200
几种树:(1)平衡树:package com.jp.algorithm.tree;import java.util.Iterator;import java.util.NoSuchElementException;/** * 平衡二叉树 * * 定义:首先它是一种特殊的二叉排序树,其次它的左子树和....
分类:
其他好文 时间:
2014-06-28 17:14:17
阅读次数:
156
bst :binary search tree(二叉搜索树)对于树中的每个节点n,左子树中的所有节点的关键字都小于节点n的关键字,右子树中所有节点的关键字都大于节点n的关键字struct node{ int key; struct node *left; //左节点 s...
分类:
其他好文 时间:
2014-06-28 17:06:24
阅读次数:
186
题目:Binary Tree Level Order Traversal i iii和ii的差别仅在于最后将结果逆序一下就行了,算法上基本相同个人思路:1、二叉树的层次遍历,我们一层一层地处理,用一个队列(A队列)将每一层的所有节点按照从左到右的顺序入队2、待该队列的所有节点都出队,并且用另外一个队...
分类:
其他好文 时间:
2014-06-28 17:01:33
阅读次数:
235
东西都上传到这里了:https://github.com/RexKang/Zabbix/tree/master/OS/Linux-disk-discovery 需要用到的东西:Zabbix的LLD:https://www.zabbix.com/documentation/2.0/manual/dis...
分类:
系统相关 时间:
2014-06-20 19:30:34
阅读次数:
393
题目:Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmet...
分类:
其他好文 时间:
2014-06-20 18:44:41
阅读次数:
279
private void FocusFirstTabIndex(Control container){ // init search result varialble Control searchResult = null; // find the control with the...
分类:
其他好文 时间:
2014-06-20 17:43:54
阅读次数:
178
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-06-20 15:30:19
阅读次数:
227
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted fr...
分类:
其他好文 时间:
2014-06-20 15:29:46
阅读次数:
233
框架页面如下: 在tree页面中想要刷新opertop页面内容,两种方法:第一种:...
分类:
其他好文 时间:
2014-06-20 14:46:59
阅读次数:
121