关于MemStore的补充
在通过HStore.add向store中添加一个kv时,首先把数据写入到memstore中。这一点没有什么说明;
publiclongadd(finalKeyValue
kv) {
lock.readLock().lock();
try{
returnthis.memstore.add(kv);
}finally{
lock.readLock().un...
分类:
其他好文 时间:
2014-05-12 14:14:38
阅读次数:
340
Ubuntu下自带的Ibus输入法平台并不好用,现在主要使用的是fcitx输入法.安装fcitx输入法的安装和配置过程如下:首先卸载掉ibus,输入命令sudo
apt-get remove ibus然后添加fcitx源,sudo add-apt-resporitory ppa:fcitx-team...
分类:
其他好文 时间:
2014-05-12 08:52:36
阅读次数:
271
1.BCB 菜单:
Project->Options->Packages->Add[喝小酒的网摘]http://blog.const.net.cn/a/8496.htm如果是BCB6:
选择安装的文件夹 yb_base_c6.bpl 和 yb_comm_c6.bpl, 然后按“打开”按钮如果是BCB...
分类:
其他好文 时间:
2014-05-12 08:32:09
阅读次数:
470
原题地址:http://oj.leetcode.com/problems/binary-tree-postorder-traversal/题意:实现后序遍历。递归实现比较简单,非递归实现。解题思路:这道题的迭代求解比先序遍历和后序遍历要麻烦一些。假设一棵树是这样的:
...
分类:
编程语言 时间:
2014-05-12 08:13:39
阅读次数:
336
Given a singly linked list where elements are
sorted in ascending order, convert it to a height balanced BST.1.
将LinkedList的值保存到一个数组中,转化成Convert Sorte...
分类:
其他好文 时间:
2014-05-12 05:53:09
阅读次数:
367
Given a binary tree, determine if it is a valid
binary search tree (BST).Assume a BST is defined as follows:The left subtree of
a node contains only n...
分类:
其他好文 时间:
2014-05-11 06:46:32
阅读次数:
366
题目
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,...
分类:
其他好文 时间:
2014-05-11 03:25:24
阅读次数:
298
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Maximum Depth of Binary Tree
Total Accepted: 16605 Total
Submissions: 38287
Given a binary tree, find its maximum depth.
...
分类:
其他好文 时间:
2014-05-11 01:58:31
阅读次数:
441
学习完了事件(event),可以得到:事件(event)=委托(deledgate)+增加/移除(add/remove)
——这一点,创建一个事件之后用反编译器(.NET Reflector)可以看见而之前学习属性可以看成:属性=共有的(pub...
分类:
其他好文 时间:
2014-05-11 01:15:13
阅读次数:
392
RPM是RedHat Package
Manager(RedHat软件包管理工具)类似Windows里面的“添加/删除程序”rpm 执行安装包
二进制包(Binary)以及源代码包(Source)两种。二进制包可以直接安装在计算机中,而源代码包将会由RPM自动编译、安装。源代码包经常以src.rpm...
分类:
系统相关 时间:
2014-05-11 00:55:18
阅读次数:
489