没什么太多讲的,可以使用递归和迭代两种方法来做,要仔细考虑各种输入情况。code如下:...
分类:
其他好文 时间:
2014-06-15 15:09:59
阅读次数:
145
java集合排序
如何给Java中List集合排序呢?前端时间在工作中遇到类似于给这样的结构排序List>>按照其中Map中的某个key值排序呢?
集合产生如下:
public void sortList(){
List>> list = new ArrayList>>();
int group = 0;
for(int i =0;i...
分类:
编程语言 时间:
2014-06-15 14:36:08
阅读次数:
369
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
思路:由【Leetcode】Linked
List Cycle可知,利用一快一慢...
分类:
其他好文 时间:
2014-06-15 14:23:38
阅读次数:
288
没有五笔怎么打字!ctrl + alt + [F2 - F6]进入控制台模式f2 - f6是五个控制台,想进哪个进哪个!进入之后用alt + [F2 - F6]来切换不同的控制台输入root / 密码# yum list|grep wubi 使用这个命令来看看有哪些可以安装的五笔包,出来一个:ib....
分类:
其他好文 时间:
2014-06-15 11:28:43
阅读次数:
218
方法一 循环元素删除
[c-sharp] view
plaincopy
public static void removeDuplicate(List list) {
for ( int i = 0 ; i
for ( int j = list.size() - 1 ; j > i; j -- ) {
if ...
分类:
其他好文 时间:
2014-06-15 10:30:00
阅读次数:
204
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up: Can you solve it without using extra space?比...
分类:
其他好文 时间:
2014-06-14 15:48:59
阅读次数:
217
背景
由于某种原因,我们系统需要记录另一个系统中一个表里的id。
但是,当我们记录完了以后,别人系统可能会删除那个表里的一些数据,这样的话,我们这边就多了一些无效数据,所以,我们必须的找到这些无效的id,然后将其删除。
开始,我们的实现是这样:我们将记录下来的所有id放在一个list里,然后传到另一个系统,他将他们已经删除的id返回。具体处理代码如下:
public String f...
分类:
其他好文 时间:
2014-06-14 15:06:57
阅读次数:
234
使用WPF应用程序更新SharePoint列表,中间使用CAML,XML等技术。...
package com.he.list;
import java.util.Arrays;
import org.w3c.dom.ls.LSException;
class ArrayList {
private int length;// the list's length
private int[] store;// store the data
// initialize ...
分类:
其他好文 时间:
2014-06-14 11:16:05
阅读次数:
224