Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->...
分类:
其他好文 时间:
2015-02-01 16:10:35
阅读次数:
187
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of...
分类:
其他好文 时间:
2015-01-31 17:59:32
阅读次数:
180
Time Limit: 2000ms
Memory Limit: 524288KB
This problem will be judged on CodeForces. Original ID:
385C
64-bit integer IO format: %I64d Java class name:
(Any)
Prev
Submit
Status
Sta...
分类:
其他好文 时间:
2015-01-30 09:14:45
阅读次数:
128
String str = new String("abc")创建了俩个对象,首先为创建一个String对象"abc",然后在调用String类的构造方法时1 public String(String original) {2 //other code ...3 }再次创建了一个对象origi...
分类:
其他好文 时间:
2015-01-24 21:23:46
阅读次数:
161
加深记忆------ 经常用到这些,做个记录!这里列出两种遍历方式...用到的函数原型: 1 HWND GetWindow( 2 HWND hWnd, // handle to original window 3 UINT uCmd // relationship flag ...
分类:
编程语言 时间:
2015-01-24 00:23:29
阅读次数:
280
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2015-01-22 15:19:51
阅读次数:
118
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2015-01-22 01:41:03
阅读次数:
111
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of...
分类:
其他好文 时间:
2015-01-21 18:12:02
阅读次数:
114
Recaman's SequenceTime Limit: 3000msMemory Limit: 60000KBThis problem will be judged onPKU. Original ID:208164-bit integer IO format:%lld Java class n...
分类:
其他好文 时间:
2015-01-20 17:24:55
阅读次数:
229
Dungeon MasterTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:225164-bit integer IO format:%lld Java class name:...
分类:
其他好文 时间:
2015-01-20 17:20:26
阅读次数:
100