Given a linked list, remove the nth node from
the end of list and return its head. For example, Given linked list:
1->2->3->4->5, and n = 2. After rem...
分类:
其他好文 时间:
2014-05-26 09:08:23
阅读次数:
262
从一个List中移除重复的数据使用迭代方法会报异常:java.util.ConcurrentModificationExceptionMap
temp = new HashMap();for (GroupRule rule : ruleList) { String ruleName =
rule.....
分类:
其他好文 时间:
2014-05-23 05:41:56
阅读次数:
187
Determine whether an integer is a palindrome.
Do this without extra space.if use recursive, like check the first dig and last
dig, then remove them, c...
分类:
其他好文 时间:
2014-05-23 02:45:15
阅读次数:
230
题目说:Try to do this in one pass
只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode...
分类:
其他好文 时间:
2014-05-23 01:52:29
阅读次数:
331
一、简单介绍
javac 是java语言编程编译器。javac工具读由java语言编写的类和接口的定义,并将它们编译成字节代码的class文件。
二、源码获取
OpenJDK6源码:http://download.java.net/openjdk/jdk6/
Javac的源码就在OpenJDK源码里面。
或者在CSDN下载:http://download.csdn.net/det...
分类:
编程语言 时间:
2014-05-22 23:35:36
阅读次数:
367
Remove Duplicates from Sorted Array...
分类:
其他好文 时间:
2014-05-22 23:06:48
阅读次数:
271
从openjdk.java.net下载openjdk的软件包,你就获得了所有相关的源码。
强烈建议首先仔细看懂README-builds.html 指南。在执行 make all 之前,首先要 执行make sanity
来检验依赖是否满足,你最好解决所有的的error 和 warning。编译需要...
分类:
其他好文 时间:
2014-05-22 15:45:08
阅读次数:
263
Given a sorted array, remove the duplicates in
place such that each element appear onlyonceand return the new length.Do not
allocate extra space for a...
分类:
其他好文 时间:
2014-05-21 20:00:51
阅读次数:
296
Given a sorted linked list, delete all nodes
that have duplicate numbers, leaving onlydistinctnumbers from the original
list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-05-21 17:51:09
阅读次数:
190