会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qwertwwwe
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2015年6月8日
g++编译安装
摘要: 最近用到的一些软件需要更新stdlibc++.so文件,因此就更新了一下gcc;1.下载gcc安装文件,并解压;2.下载依赖库: cd gcc ./contrib/download_prerequisites 这样会自动下载gmp, mpfr, mpc等依赖库,不需要自己配;3.configu...
阅读全文
posted @ 2015-06-08 16:55 qwertwwwe
阅读(662)
评论(0)
推荐(0)
2015年5月5日
Longest Palindromic Substring
摘要: 原理参考:http://www.douban.com/note/321468038/public class Solution { public String longestPalindrome(String s) { if((s == null) || (s.length() ...
阅读全文
posted @ 2015-05-05 23:17 qwertwwwe
阅读(208)
评论(0)
推荐(0)
atoi()函数实现
摘要: 实现atoi()函数,在出错时返回0; 1 int atoi(const char *str) 2 { 3 if((str == NULL) || (strlen(str) == 0)) { 4 return 0; 5 } 6 7 int value = 0...
阅读全文
posted @ 2015-05-05 20:01 qwertwwwe
阅读(373)
评论(0)
推荐(0)
2014年6月5日
64位ubuntu上安装 hadoop-2.4.0
摘要: 完全参考:http://blog.csdn.net/cruise_h/article/details/18709969这上面的安装教程伪分布配置:http://my.oschina.net/mynote/blog/93735
阅读全文
posted @ 2014-06-05 00:04 qwertwwwe
阅读(254)
评论(0)
推荐(0)
2014年5月28日
LRU Cache
摘要: leetcode中的LRU Cache题网址:http://oj.leetcode.com/problems/lru-cache/要求实现LRU Cache,及在一个容量有限的存储空间中,存放最近实用过的n组数据。我最开始的实现方法:public class LRUCache { St...
阅读全文
posted @ 2014-05-28 20:20 qwertwwwe
阅读(257)
评论(0)
推荐(0)
2014年5月26日
Java 中 == 和 equal 的区别 (String)
摘要: String s1 = "abcd";String s2 = "cdfe";s1 == s2; // 比较s1和s2这2个对象的地址,如果一样,则为true,否则为falses1.equal(s2); //比较s1和s2的内容,如果相同则为true
阅读全文
posted @ 2014-05-26 10:44 qwertwwwe
阅读(245)
评论(0)
推荐(0)
2014年5月22日
c++中new char(10) 和 new char[10]的区别
摘要: 今天随手写个程序,在网上随意找个代码照着写,无意中使用了char *p = new char(10); 来创建char数组,而且在netbeans上编译运行都没有问题,结果在oj上一直报runtime error,放在同学计算机上用codeblock运行也报错。 后来发现是这个分配的问题:c...
阅读全文
posted @ 2014-05-22 16:46 qwertwwwe
阅读(5167)
评论(0)
推荐(0)
上一页
1
2
公告