摘要:
Initialization happens when a variable is given a value at the moment it is created. Assignment obliterates the variable's current value and replace t... 阅读全文
摘要:
最近做Leetcode上的题目,感觉有些挺有趣的,比如这个Single Number题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?如果没有时间和空间复杂度的限制,这道题并没有什么难处,大可以扫一遍数组,然后用hashmap记录每个数值出 阅读全文
摘要:
下载安装包Berkeley DB 5.3.21.tar.gzhttp://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html解压 tar -zxvfBerkeley DB 5.3.21.tar.gzcd Berkeley DB 5.3.21/build_unixBuild Berkeley DB 库:../dist/configure /*如果用Berkeley DB C++ API, 要加--enable-cxx选项*/make 安装Berkeley DB库: make install P.S. 1. ... 阅读全文