#include "iostream"using namespace std;void swap(char a[],int i,int j){ char temp; temp=a[i]; a[i]=a[j]; a[j]=temp;}void permutation(char ...
分类:
其他好文 时间:
2014-10-22 20:07:25
阅读次数:
143
昨天去南京某客户那里调优新上线的业务数据库,在查看alert.log日志时发现在过去的一段时间里,每过几个小时或间隔一段时间,就会报类似以下的内容:
Thu Aug 21 09:01:26 2014
WARNING: Heavy swapping observed on system in last 5 mins.
pct of memory swapped in [8.42...
分类:
数据库 时间:
2014-10-22 18:20:18
阅读次数:
494
首先启动安装系统(我是采用vmware虚拟机)
1.设置键盘的布局
#loadkeys "us" #设置为美国的键盘布局,一般可以默认即可2.建立硬盘的分区
我采用的是fdisk对磁盘进行分区,主要的分区只有三个,/,/boot,SWAP分区,只是SWAP分区和其他的两个有所不同,是要按下t修改其格式为SWAP格式。
Fdisk 用法
以 root 身份启动 fdisk...
分类:
系统相关 时间:
2014-10-21 21:37:17
阅读次数:
297
分区类型 分区的实际大小 解析 SWAP分区 2G (内存为1G,一般为内存的2倍) / 1G-2G (最少要150–250MB) /boot 32M-100M ...
分类:
Web程序 时间:
2014-10-21 21:18:02
阅读次数:
251
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-10-21 02:14:37
阅读次数:
266
#include<iostream>? #include<algorithm>? using namespace std;? void swap(int &a,int &b) { ? ? ? ? ?int tmp = a; ? ? ?a = b; ? ? ?b = tmp; }? void ssort(int x[],int y[],int len) { ? ...
分类:
其他好文 时间:
2014-10-20 17:40:06
阅读次数:
178
Problem: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.Yo...
分类:
其他好文 时间:
2014-10-20 13:15:42
阅读次数:
195
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 alg...
分类:
其他好文 时间:
2014-10-20 09:49:08
阅读次数:
181
mkfs命令linux格式化磁盘命令 linux mkfs 指令:mkfs 使用权限 : 超级使用者 使用方式 : mkfs [-V] [-t fstype] [fs-options]filesys [blocks] [-L Lable] 说明 : 建立 linux 档案系统...
分类:
系统相关 时间:
2014-10-19 22:47:57
阅读次数:
307
1 #include 2 3 void 4 bubbleSort(int *, int); 5 6 void 7 selectSort(int *, int); 8 9 void10 show(int *, int);11 12 void13 swap(int *, int, int);1...
分类:
编程语言 时间:
2014-10-19 11:28:11
阅读次数:
171