好一点点就是好一点点嘛RT传入3个参数 。Yahoo二面被问到!完跪.... 1 void BST2DoubleList(TreeNode *root, TreeNode *& prev, TreeNode *& head) { 2 if (root == NULL) 3 return;...
分类:
其他好文 时间:
2014-10-01 00:48:30
阅读次数:
222
zabbix_agentd.confUserParameter=custom.vfs.dev.read.ops[*],cat/proc/diskstats|grep$1|head-1|awk‘{print$$4}‘UserParameter=custom.vfs.dev.read.ms[*],cat/proc/diskstats|grep$1|head-1|awk‘{print$$7}‘UserParameter=custom.vfs.dev.write.ops[*],cat/proc/diskstats|g..
分类:
其他好文 时间:
2014-10-01 00:40:10
阅读次数:
452
文件目录操作命令+++++文件目录操作命令+++++++++++++++++++++++++++++++ls cd pwd mkdir rm rmdir mv cp touch cat nl more less head tail+++++++++++++++++++++++++++++++=============ls==============ls [选项] [目录] 查看目录信息参考:htt...
分类:
系统相关 时间:
2014-09-30 00:48:06
阅读次数:
288
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:
其他好文 时间:
2014-09-29 23:36:31
阅读次数:
258
在写java程序的时候我们有时候会看到这样一种情况
比如说:
class B{}
class A{}
new A(B )//在这条语句中A类包含B类意思就是说A类中可以直接使用B类对象类调用B类的任何数据
在这里我以人体打一个比喻
比如说这里有一个人类class person{}
有一个头类 class head{}
有一个身体类 class body{}
有一个下肢类 ...
分类:
编程语言 时间:
2014-09-29 22:34:51
阅读次数:
317
单链表反转:1->2->3->4...
思路:先将1指向3,2指向1,结果为2->1->3->4,然后循环将3插入到2之前
void reverseLinkedList(List head)
{
List tmp,p;
if(head==null)
{
return ;
}
tmp=head->next;
while(tmp->next !=null){
p=tmp->next...
分类:
其他好文 时间:
2014-09-29 17:58:28
阅读次数:
175
Media Queries直译过来就是“媒体查询”,在我们平时的Web页面中head部分常看到这样的一段代码: 或者这样的形式: 不知道大家留意没有,其中两种方式引入CSS样式都有一个共同的属性“media”,而这个“media”就是用来指定特定的媒体类型,在HTML4和CSS2中充许你使用“m.....
分类:
其他好文 时间:
2014-09-29 14:54:41
阅读次数:
201
单链表大整数加法,节点是char型。First List: head->1->8->9Second List: head->9->8->1Result List: head->1->1->7->0实现了单链表(单链表类模板),现在使用单链表实现大整数加法 1 #include "stdaf...
分类:
其他好文 时间:
2014-09-29 12:56:00
阅读次数:
272
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. Y...
分类:
其他好文 时间:
2014-09-29 01:40:57
阅读次数:
297
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>js弹出对话框</title>
<scriptlanguage="javascript">
functionalter1()
{
alert("我敢保证,你现在用的是演示一");
}
functionalert2()
{
//..
分类:
Web程序 时间:
2014-09-28 18:09:38
阅读次数:
256