Given a sorted linked list, delete all
duplicates such that each element appear onlyonce.For
example,Given1->1->2, return1->2.Given1->1->2->3->3,
retu...
分类:
其他好文 时间:
2014-07-22 23:12:13
阅读次数:
426
原题地址:http://oj.leetcode.com/problems/insertion-sort-list/题意:对链表进行插入排序。解题思路:首先来对插入排序有一个直观的认识,来自维基百科。
代码循环部分图示:代码:class Solution:# @p...
分类:
编程语言 时间:
2014-07-22 23:11:32
阅读次数:
411
http://blog.csdn.net/humingfiy/article/details/7946408Collection:List、SetMap:HashMap、HashTable如何在它们之间选择一、Array
,ArraysJava所有“存储及随机访问一连串对象”的做法,array是最有...
分类:
其他好文 时间:
2014-07-22 23:08:52
阅读次数:
394
实现公式:{{orderBy_expression |
orderBy:expression:reverse}}Examplevar app=angular.module("myApp",[]);
app.controller("Ctrl",function($scope){ $scope.fri....
分类:
Web程序 时间:
2014-07-22 23:07:52
阅读次数:
960
http://mobile.51cto.com/android-259861.htm实现第一点好办,添加一个标志位boolean
bl来控制按钮的Enable状态,实现第二点就是将View.onClickListener添加到List列表中1、MyAdapter.java继承自BaseAdapter...
分类:
其他好文 时间:
2014-07-22 23:07:14
阅读次数:
339
List类Vector和ArrayList的区别:1版本不同,Vector属于jdk1.0,而ArrayList属于jdk1.2后的版本。2,效率上ArrayList比Vector要高,同时vector线程安全,而arraylist线程不安全。ArrayList与LinkedList的区别:1,结构...
分类:
其他好文 时间:
2014-07-22 23:07:12
阅读次数:
237
逆波兰表示法逆波兰表示法(Reverse Polish
notation,RPN,或逆波兰记法),是一种是由波兰数学家扬·武卡谢维奇1920年引入的数学表达式方式,在逆波兰记法中,所有操作符置于操作数的后面,因此也被称为后缀表示法。逆波兰记法不需要括号来标识操作符的优先级。逆波兰结构由弗里德里希·鲍...
分类:
其他好文 时间:
2014-07-22 23:06:35
阅读次数:
281
Linux tar command usageLinux tar command
usageTable of Contents1. Create an archive:2. Create a gzipped archive:3. List
the files in an archive4. Add ...
分类:
系统相关 时间:
2014-05-01 16:16:01
阅读次数:
586
List lst = new List(); lst.Add(new Person("A",
"1")); lst.Add(new Person("C", "2")); lst.Add(new Person("B", "3")); ...