【题目】
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 differ by more than 1.
【题意】
判断二叉树是否是平衡二叉树
【思路】
平衡二...
分类:
其他好文 时间:
2014-06-20 11:02:54
阅读次数:
173
在JavaScript模块到底是什么event = function() { // do more
return { bind: function() {}, unbind: function() {}, trigger: function() ...
分类:
编程语言 时间:
2014-06-20 08:50:47
阅读次数:
408
在实际的项目中,从音频设备采集到的音频的类型和编码器类型(aac
,amr)通常是不一致的。那么我们首先需要做重采样的过程。利用swr_convert
重新采样。这时候我们可能会遇到另外一个问题。就是在encode_audio的时候遇到more samples than frame size (av...
分类:
其他好文 时间:
2014-06-13 13:55:45
阅读次数:
405
Rename a TFS Project CollectionI was asked the
other day how to rename a Team Project Collection.There is a way, and it is more
like a three card shuf...
分类:
其他好文 时间:
2014-06-13 13:39:13
阅读次数:
537
yum配置与使用(很详细)yum的配置一般有两种方式,一种是直接配置/etc目录下的yum.conf文件,另外一种是在/etc/yum.repos.d目录下增加.repo文件。一、yum的配置文件$cat/etc/yum.conf[main]cachedir=/var/cache/yum#yum下载...
分类:
其他好文 时间:
2014-06-11 23:11:34
阅读次数:
376
7.Occupant Use CasesThe main actor in a
multi-user chat environment is the occupant, who can be said to be located "in"
a multi-user chat room and to ...
分类:
其他好文 时间:
2014-06-11 10:13:56
阅读次数:
261
ssh
narnia3@narnia.labs.overthewire.org密码:OOXX(上一关拿到的密码)cat narnia3.c#include
#include #include #include #include #include #include int main(int argc....
分类:
其他好文 时间:
2014-06-11 09:59:03
阅读次数:
347
1. IntroductionHTB is meant as a more
understandable, intuitive and faster replacement for the CBQ qdisc in Linux.
Both CBQ and HTB help you to contro...
分类:
系统相关 时间:
2014-06-09 23:49:19
阅读次数:
551
直接上代码:
写一个Bean,封装数据
package com.mbl.wbsconn;
import java.util.List;
import java.util.Map;
public class BaseBean {
protected String usid;
protected String pwd;
protected String error;
p...
分类:
移动开发 时间:
2014-06-07 15:17:20
阅读次数:
405
题目
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict =...
分类:
其他好文 时间:
2014-06-07 13:53:28
阅读次数:
247