代码改变世界

阅读排行榜

二叉搜索树与中序遍历的缘分

2016-08-03 21:31 by shuaihanhungry, 8127 阅读, 收藏,
摘要: 二叉搜索树一个很重要的特性就是:树中任何结点的左子树中所有结点的值均比该结点小,右子树中所有结点的值均比该结点大。对二叉搜索树进行中序遍历即得到一个递增排序的序列。 检查一个树是否是二叉搜索树可以使用中序遍历,根据递增排序的序列生成二权搜索树也可以使用中序遍历。往往使用中序遍历来解决二叉搜索树的问题 阅读全文

Netty学习笔记

2016-09-05 12:59 by shuaihanhungry, 4656 阅读, 收藏,
摘要: 一些类与方法说明 1)ByteBuf ByteBuf的API说明: Creation of a buffer It is recommended to create a new buffer using the helper methods in Unpooled rather than calli 阅读全文

Valgrind使用记录

2016-08-29 17:04 by shuaihanhungry, 4055 阅读, 收藏,
摘要: 0、安装valgrind wget http://valgrind.org/downloads/valgrind 3.11.0.tar.bz2 tar xvf valgrind 3.11.0.tar.bz2 cd valgrind 3.11.0/ ./configure make sudo make 阅读全文

《Linux多线程服务端编程》笔记——多线程服务器的适用场合

2016-08-23 16:30 by shuaihanhungry, 2947 阅读, 收藏,
摘要: 如果要在一台多核机器上提供一种服务或执行一个任务,可用的模式有 运行一个单线程的进程 运行一个多线程的进程 运行多个单线程的进程 运行多个多线程的进程 这些模式之间的比较已经是老生常谈,简单地总结 模式 1 是不可伸缩的 (scalable),不能发挥多核机器的计算能力; 模式 3 是目前公认的主流 阅读全文

C++中的trivial解释

2016-07-20 10:36 by shuaihanhungry, 2830 阅读, 收藏,
摘要: Trivial default constructor The default constructor for class T is trivial (i.e. performs no action) if all of the following is true: The constructor 阅读全文
1 2 3 4 5 ··· 9 下一页