http://www.hankcs.com/nlp/ansj-word-pairs-array-tire-tree-achieved-with-arrays-dic-dictionary-format.htmlarrays.dic是一个双数组Trie树格式的词典,用文本的形式储存了索引,字串,bas...
分类:
编程语言 时间:
2014-11-04 12:32:05
阅读次数:
304
题目描述:
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the s...
分类:
其他好文 时间:
2014-11-04 11:09:10
阅读次数:
135
grep "key" xxx.log时输出
Binary file xxx.log matches
百度了一下:grep认为这是二进制文件,解决方案:grep -a。
grep -a "key" xxx.log...
分类:
其他好文 时间:
2014-11-04 11:07:12
阅读次数:
175
步骤1:下载Axis2
选择Standard Binary Distribution的zip包;解压到任一路径下
步骤2:配置Axis2
Window -> Preferences -> Web Service
步骤3:开发WebService
1)、新建一个Dynamic Web Project,命名为“WebService”
2)、新建...
分类:
Web程序 时间:
2014-11-04 09:26:53
阅读次数:
233
链表是内核中非常非常重要的基础设施,并且在应用层也可将该套设施拿过来用。
这里就是将内核的list.h中部分接口拿到应用层用,其实应用层、内核层都一样,
这里之所以在应用层操作,只是因为测试更为方便。
将内核中的链表list.h移植到应用层的文件如下:
root@ubuntu:/mnt/shared/kernelbox/list# tree
.
├── list.h //内核中...
分类:
系统相关 时间:
2014-11-04 00:11:06
阅读次数:
316
摘要 书中第10章10.4小节介绍了有根树,简单介绍了二叉树和分支数目无限制的有根树的存储结构,而没有关于二叉树的遍历过程。为此对二叉树做个简单的总结,介绍一下二叉树基本概念、性质、二叉树的存储结构和遍历过程,主要包括先根遍历、中根遍历、后根遍历和层次遍历。1、二叉树的定义 二叉树(Binary.....
分类:
其他好文 时间:
2014-11-04 00:09:42
阅读次数:
247
看了一下数据结构中树的操作,A这题感觉好一点了。Symmetric Tree和这个很相似来着,可以借鉴一下这个思路。用递归处理Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that ...
分类:
其他好文 时间:
2014-11-03 23:55:42
阅读次数:
184
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 1 /** 2 * Definition for singly-linked ....
分类:
其他好文 时间:
2014-11-03 23:53:07
阅读次数:
185
ROC(Receiver Operating Characteristic)曲线和AUC常被用来评价一个二值分类器(binary classifier)的优劣,对两者的简单介绍见这里。这篇博文简单介绍ROC和AUC的特点,以及更为深入地,讨论如何作出ROC曲线图...
分类:
其他好文 时间:
2014-11-03 22:45:11
阅读次数:
406