码迷,mamicode.com
首页 >  
搜索关键字:swap    ( 4231个结果
将abc的全排列输出
#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
AIX6.1/11.2.0.3数据库上关于SWAP的一个BUG
昨天去南京某客户那里调优新上线的业务数据库,在查看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
arch linux的安装(参考官方文档,桌面安装还没搞好稍后搞定)
首先启动安装系统(我是采用vmware虚拟机) 1.设置键盘的布局 #loadkeys "us" #设置为美国的键盘布局,一般可以默认即可2.建立硬盘的分区 我采用的是fdisk对磁盘进行分区,主要的分区只有三个,/,/boot,SWAP分区,只是SWAP分区和其他的两个有所不同,是要按下t修改其格式为SWAP格式。 Fdisk 用法 以 root 身份启动 fdisk...
分类:系统相关   时间:2014-10-21 21:37:17    阅读次数:297
CentOS WEB服务器分区方案
分区类型 分区的实际大小 解析 SWAP分区 2G (内存为1G,一般为内存的2倍) / 1G-2G (最少要150–250MB) /boot 32M-100M ...
分类:Web程序   时间:2014-10-21 21:18:02    阅读次数:251
[Leetcode] Swap Nodes in Pairs
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
平面上N个点,每两个点都确定一条直线,求出斜率最大的那条直线所通过的两个点
#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
leetcode第23题--Swap Nodes in Pairs
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
Leetcode | Swap Nodes in Pairs
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
linux mkfs命令参数及用法详解---linux格式化文件系统命令(包括swap分区)
mkfs命令linux格式化磁盘命令 linux mkfs 指令:mkfs 使用权限 : 超级使用者 使用方式 : mkfs [-V] [-t fstype] [fs-options]filesys [blocks] [-L Lable] 说明 : 建立 linux 档案系统...
分类:系统相关   时间:2014-10-19 22:47:57    阅读次数:307
c - 冒泡/选择排序.
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!