2016年2月22日

318. Maximum Product of Word Lengths

摘要: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum 阅读全文

posted @ 2016-02-22 09:18 olive_lv 阅读(438) 评论(0) 推荐(0)

2016年2月20日

List之Vector源码分析

摘要: 源码版本为JDK1.7.0_75。 public class Vector<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, java.io.Serializable Vector继承了AbstractLi 阅读全文

posted @ 2016-02-20 17:46 olive_lv 阅读(156) 评论(0) 推荐(0)

2016年2月19日

List之LinkedList源码分析

摘要: public class LinkedList<E> extends AbstractSequentialList<E> implements List<E>, Deque<E>, Cloneable, java.io.Serializable 源码版本为JDK1.7.0_75. LinkedLis 阅读全文

posted @ 2016-02-19 16:14 olive_lv 阅读(174) 评论(0) 推荐(0)

319. Bulb Switcher

摘要: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every 阅读全文

posted @ 2016-02-19 14:37 olive_lv 阅读(122) 评论(0) 推荐(0)

328. Odd Even Linked List

摘要: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文

posted @ 2016-02-19 14:36 olive_lv 阅读(191) 评论(0) 推荐(0)

java中transient关键字

摘要: 一个对象只要实现了Serializable接口,该对象就可以被序列化。然而在实际开发过程中,常常会遇到这样的问题,该类有些属性需要序列化,其他属性不需要被序列化。例如一个用户有一些敏感信息(如密码,银行卡号等),为了安全起见,不希望在网络操作(主要涉及序列化)中被传输,这些信息对应的变量就可以加上t 阅读全文

posted @ 2016-02-19 14:35 olive_lv 阅读(3024) 评论(0) 推荐(0)

List之ArrayList源码分析

摘要: ArrayList内部使用一个Object[]数组来保存元素。源码版本为JDK1.7.0_75. public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable,java.io 阅读全文

posted @ 2016-02-19 14:32 olive_lv 阅读(245) 评论(0) 推荐(0)

2016年2月17日

onenote发送至博客实践

摘要: 之所以想使用onenote发布到博客,一是一直都用onenote来记笔记,二是同时可以发布,免去了像在csdn上重新编辑的繁琐过程,还是重复工作,而且onenote的排版还可以,加一些插件,展示得不错,缺点就是win8.1的onenote虽然展示效果更好,但功能反而简化了,像发布博客也没了,唉……… 阅读全文

posted @ 2016-02-17 16:26 olive_lv 阅读(1989) 评论(0) 推荐(1)

导航