上一页 1 ··· 12 13 14 15 16

Difference Between Initialization and Assignment in C++

摘要: 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... 阅读全文
posted @ 2014-07-18 15:56 Ryan-Xing 阅读(140) 评论(0) 推荐(0) 编辑

Leetcode: Single Number

摘要: 最近做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记录每个数值出 阅读全文
posted @ 2013-10-05 22:57 Ryan-Xing 阅读(209) 评论(0) 推荐(0) 编辑

Unix安装BerkeleyDB

摘要: 下载安装包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. ... 阅读全文
posted @ 2013-08-16 01:22 Ryan-Xing 阅读(666) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16