2016年10月28日

摘要: 15. 3Sum Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives th 阅读全文
posted @ 2016-10-28 15:39 渡江云 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 16.3Sum Closest Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the 阅读全文
posted @ 2016-10-28 14:40 渡江云 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 最近弄Ceph集群考虑要不要加入分层存储 因此花了点时间研究了下 1,首先肯定要弄清Ceph分层存储的结构 ,结构图大概就是下图所示 缓存层(A cache tier)为Ceph客户端提供更好的I/O性能,而数据存储在存储层(a backing storage tier)。用相对快速/昂贵的设备(比 阅读全文
posted @ 2016-10-28 13:53 渡江云 阅读(2799) 评论(0) 推荐(0) 编辑

2016年9月21日

摘要: Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than  阅读全文
posted @ 2016-09-21 14:53 渡江云 阅读(221) 评论(0) 推荐(0) 编辑

2016年9月8日

摘要: 排版 (1)标题 Bootstrap标题样式进行了以下显著的优化重置: 1、重新设置了margin-top和margin-bottom的值, h1~h3重置后的值都是20px;h4~h6重置后的值都是10px。2、所有标题的行高都是1.1(也就是font-size的1.1倍),而且文本颜色和字体都继 阅读全文
posted @ 2016-09-08 19:02 渡江云 阅读(493) 评论(0) 推荐(0) 编辑

2016年9月2日

摘要: JAVA中的静态加载类是编译时刻加载类 动态加载类指的是运行时刻加载类 二者有什么区别呢 举一个例子 现在我创建了一个类 实现的功能假设为通过传入的参数调用具体的类和方法 这个文件另存为office.java 很明显 这个类是无法编译通过的 运行javac office.java时 会报错无法找到类 阅读全文
posted @ 2016-09-02 14:26 渡江云 阅读(1851) 评论(0) 推荐(0) 编辑

2016年8月26日

摘要: 1.查找文件 find / -name filename.txt 根据名称查找/目录下的filename.txt文件。 find . -name "*.xml" 递归查找所有的xml文件 find . -name "*.xml" |xargs grep "hello world" 递归查找所有文件内 阅读全文
posted @ 2016-08-26 15:50 渡江云 阅读(4508) 评论(0) 推荐(1) 编辑
摘要: 以下基本上是java string类型最常用的三种方法 new string()就不介绍了 基本等同于第三种 String a; 申明一个string类型的 a,即没有在申请内存地址,更没有在内存任何指向引用地址;String a = null ; 申明一个string类型的 a,同时在内存里申请了 阅读全文
posted @ 2016-08-26 14:29 渡江云 阅读(1014) 评论(0) 推荐(0) 编辑

2016年8月24日

摘要: 实验室最近在做的项目要做ubuntu系统监控,要获得系统的一些信息并返回给web服务器. web服务器与ubuntu主机的通信我写的程序用的是socket,至于为什么不用java程序ssh到对应的主机上当初这个方案被否决了,只好专心写自己的socket. 系统的cpu信息的获得可以用cat /pro 阅读全文
posted @ 2016-08-24 16:05 渡江云 阅读(1526) 评论(0) 推荐(0) 编辑

导航