【题目】
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
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
什么是单一职责原则 什么是单一职责原则? 单一职责原则的英文名称是Single
Responsibility Principle,简称SRP。SRP的原话解释是:There should never be more than one
reason for a class to change.也就是说...
分类:
其他好文 时间:
2014-06-08 19:36:12
阅读次数:
315
题目
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
Tutorial The Kithara ?RealTime Suite? (KRTS) is
a real-time extension for Windows, which currently contains more than 20
different functional modules....
分类:
其他好文 时间:
2014-06-06 10:38:26
阅读次数:
748
在VirtualBox中,有时候打开虚拟机,会出现Waiting for 60 seconds
more for network configuration这种情况,从而使得开机变得很慢。通过以下操作,可以让虚拟机开机很快,并且开机后不用再执行sudo
dhclient eth0这种操作获取IP了。...
分类:
其他好文 时间:
2014-06-05 14:07:57
阅读次数:
300
Initialization comes after Class loading.
分类:
其他好文 时间:
2014-06-02 07:58:13
阅读次数:
156