最近开始重新学习C/C++,第一步当然就是IDE环境配置,一直Eclipse,buxiang...
分类:
编程语言 时间:
2014-06-22 21:53:24
阅读次数:
297
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found ...
分类:
其他好文 时间:
2014-06-22 21:47:15
阅读次数:
269
报错内容:configure: error: mcrypt.h not found. Please reinstall libmcrypt
网上搜索了很多,包括自带的 yum install libmcrypt libmcrypt-devel,这个是没有效果的。
去SourceForget下载libmcrypt http://sourceforge.net/projects/mcrypt/fi...
分类:
Web程序 时间:
2014-06-22 21:13:35
阅读次数:
272
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
Note: Recursive solut...
分类:
其他好文 时间:
2014-06-22 20:58:01
阅读次数:
157
apt-get无法下载,网址报 Not Found 404,原因是apt软件下载源有问题。
1.将/etc/apt/source.list里的内容替换。
再其它可以下载apt的ubuntu机器中拷贝过来覆盖此文件,再执行apt-get
update更新source list。
2.“软件更新管理”->"设置"->“ubuntu软件”->“下载自”中修改软件下载源。...
分类:
其他好文 时间:
2014-06-22 20:39:06
阅读次数:
150
WAP Binary XML定义好XML片断表述出同步服务器地址、远程数据库名称、登录账号等等内容一、两种访问方法:
目前的kxml支持两种wap格式:WBXML/WML。
而有两种方法将解析WBXML:
1。使用j2me将WBXML转换到XML;
2。使用kxml直接解析WBXML流。下面我在这里讨论一下使用第二种方法实现client代码解...
分类:
移动开发 时间:
2014-06-22 17:37:30
阅读次数:
176
Last night it took me about two hours to learn arrays. For the sake of less time, I did not put emphaises on the practice question, just now when reading the book, I found that some methods
referred...
分类:
其他好文 时间:
2014-06-22 17:14:10
阅读次数:
152
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recursive soluti...
分类:
其他好文 时间:
2014-06-22 16:37:51
阅读次数:
168
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ ...
分类:
其他好文 时间:
2014-06-21 22:44:58
阅读次数:
266
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
求数字字符串的二进制和。同之前的数组代表数字,两个数组相加一样,只不过进位变成了2.可能两个串的长度不一样,故逆转,从左到右加下去,最后再逆转。
publi...
分类:
其他好文 时间:
2014-06-21 20:11:21
阅读次数:
344