【题目】
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 the two partitions.
For example,
Given 1->4->3-...
分类:
其他好文 时间:
2014-06-03 00:02:29
阅读次数:
270
题目链接:
http://poj.org/problem?id=2243
题目:
Knight Moves
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10932
Accepted: 6171
Description
A friend of you...
分类:
其他好文 时间:
2014-06-02 23:31:39
阅读次数:
290
BY
Jeff Haden @jeff_haden
Sometimes the route to happiness depends more on what you don't do....
分类:
移动开发 时间:
2014-06-02 23:17:28
阅读次数:
525
前两篇在这里:Android上使用native
IO最近工作中的问题笔记最近遇到的问题是,java.io.IOException: FAT
FullStackOverflow的结果:http://stackoverflow.com/questions/18906055/what-causes-job...
分类:
移动开发 时间:
2014-06-02 22:27:49
阅读次数:
628
10 Ways To Improve Your Mood改善情绪的10种方法Everyday
productivity and efficiency practically depend on how you feel. More often than
not, happy people are m...
分类:
其他好文 时间:
2014-06-02 21:52:31
阅读次数:
327
这是Oracle对正则表达式的backreference的描述
从定义中可以看到,当匹配表达式中已()的形式将一个子串包含起来,后面就可以以\?的形式来引用。\1对应第一个(),\2对应第二个...
反向引用的引入使得正则表达式的匹配功能变得更加强大,介绍两个在oracle正则函数中的应用
regexp_like
regexp_like('1211233','^([0-9...
分类:
数据库 时间:
2014-06-01 10:53:39
阅读次数:
299
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space....
分类:
其他好文 时间:
2014-06-01 10:41:23
阅读次数:
242
title:
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10,...
分类:
其他好文 时间:
2014-06-01 10:31:26
阅读次数:
233
【题目】
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B. The number of elements initialized in A and B are...
分类:
其他好文 时间:
2014-06-01 09:21:16
阅读次数:
292
我们通过nio学习了Reactor模式,但是在java7中又出现了NIO.2,新的异步框架出来了,在上节中的服务端视线中看不到Reactor的影子了,但是Netty in action中写到:But notice that NIO.2 handles threading and the creation of the so-called event loop for you.所以模式还是没变,只是封装了而已!那让我们来分解下AIO(NIO.2)的封装吧!...
分类:
其他好文 时间:
2014-06-01 01:40:11
阅读次数:
388