题目:Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For e...
分类:
编程语言 时间:
2015-01-09 23:44:17
阅读次数:
237
private void initImageLoader(){
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
.threadPriority(Thread.NORM_PRIORITY - 2)
.denyCacheImageMultipleSizesInMemory()
...
分类:
其他好文 时间:
2015-01-08 13:23:51
阅读次数:
212
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:
其他好文 时间:
2015-01-08 07:02:39
阅读次数:
168
题目:
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorder...
分类:
编程语言 时间:
2015-01-07 16:53:03
阅读次数:
200
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For ....
分类:
其他好文 时间:
2015-01-05 08:16:29
阅读次数:
139
public class Solution { public ListNode addTwoNumbers(ListNode l1, ListNode l2) { ListNode tn = null; ListNode tl = new ListNode(0); ListN...
分类:
其他好文 时间:
2015-01-04 11:14:28
阅读次数:
161
http://en.wikipedia.org/wiki/Norm经常会听到p norm的说法,其实很简单,可以看成2范数的扩展,但是有一点需要注意:p的范围是[1, inf)。p在(0,1)范围内定义的并不是范数,因为违反了三角不等式(||x+y|| 2 == ||x|| + ||y||,这就是....
分类:
其他好文 时间:
2015-01-01 12:29:48
阅读次数:
152
ListBufferListBuffer类位于 scala.collection.mutable.ListBuffer val buf = new ListBuffer[Int] val l1 = List(1,2,3,4,5) for (x<-l1) buf += x+...
分类:
其他好文 时间:
2014-12-30 11:20:25
阅读次数:
129
val buf = new ListBuffer[Int] val l1 = List(1,2,3,4,5) for (x<-l1) buf += x+1; println(buf) val l2 = buf.toList println(l2)
分类:
其他好文 时间:
2014-12-30 11:14:59
阅读次数:
95