要使用httpd模块,需要在脚本开头添加: require "httpd" httpd.pairs(apr_table) 用以遍历apr_tablefor key, value in httpd.pairs(t) do body end 例: 1 require "httpd" 2 loca...
分类:
Web程序 时间:
2014-11-18 00:20:57
阅读次数:
195
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-11-18 00:18:35
阅读次数:
182
在2.10中的inplace_swap函数的基础上,你决定写一段代码,实现将一个数组中的元素两端依次对调,你写出下面这个函数: 1 void reverse_array(int a[], int cnt) 2 { 3 int first, last; 4 for(first = 0,...
分类:
移动开发 时间:
2014-11-18 00:18:15
阅读次数:
267
代码如下$data[$high]) { $this->swap($data, $low, $high); } //交换中间和右端数据,保证中间较小 if($data[$m]>$data[$high]) { $thi...
分类:
编程语言 时间:
2014-11-17 22:41:59
阅读次数:
235
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...
分类:
其他好文 时间:
2014-11-17 22:40:48
阅读次数:
231
Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:
其他好文 时间:
2014-11-17 22:36:09
阅读次数:
271
一、什么是swap space(交换分区)?在Linux系统中,当物理内存满了才使用Swap空间。当系统需要更多的内存资源,并且物理内存已经满了,此时,内存中那些不活跃的pages被移动(move)到swap空间。虽然,交换分区能使设备使用更少的物理内存,但这并不表示可以替换物理内存。交换分区处于硬...
分类:
其他好文 时间:
2014-11-17 19:15:26
阅读次数:
250
root@tt # root@tt # prstat -aPlease wait...PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP22879 oracle 11G 273M cpu8 0 0 0:13:47 3...
分类:
其他好文 时间:
2014-11-17 19:04:55
阅读次数:
267
【题目】
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
Note: Recursi...
分类:
其他好文 时间:
2014-11-17 17:52:41
阅读次数:
191