介绍 /dev/shm/是一个使用就是tmpfs文件系统的设备,其实就是一个特殊的文件系统。redhat中默认大小为物理内存的一半,使用时不用mkfs格式化。 tmpfs是Linux/Unix系统上的一种基于内存的虚拟文件系统。tmpfs可以使用您的内存或swap分区来存储文件(即它的存储空间在vi...
分类:
系统相关 时间:
2014-11-24 11:33:34
阅读次数:
247
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:
其他好文 时间:
2014-11-24 10:11:36
阅读次数:
152
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-11-24 10:10:53
阅读次数:
155
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-11-24 09:50:10
阅读次数:
168
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-11-23 23:08:59
阅读次数:
332
安装前须知:内存(RAM)的最小要求是 1GB,建议 2GB 及以上。虚拟内存 swap 建议:内存为 1GB~2GB 时建议swap大小为内存大小的 1.5 倍;内存为 2GB~16GB 时建议swap大小为内存的大小;内存超过 16GB 时swap保持16GB。要求临时文件目录,如 /tmp 的...
分类:
数据库 时间:
2014-11-23 17:18:26
阅读次数:
229
在开始你使用这种方法int tmp;
tmp = a;
a = b;
b = tmp;
后来你知道了模块化编程,你知道这样是不好的,于是你开始使用函数.void swap(int *a, int *b);
{
int tmp;
tmp = *a;
*a = *b;
*b =tmp;
}//下面我写函数了
随着c语言的学习,后来你发现下面代码也能完成两变量的值交换的任x = x +y;...
分类:
编程语言 时间:
2014-11-23 13:07:57
阅读次数:
184
1.插入排序void InsertSort(int *a,int n){ int i,j; int temp; for (i=1;i=0 && tempa[j+1]) swap(a[j],a[j+1]); } }}void Bubb...
分类:
编程语言 时间:
2014-11-23 10:27:47
阅读次数:
249
今天,在虚拟机上装了redhat6.4。原是想在win8下安装双系统,由于磁盘分区问题,最后决定在虚拟机上先安装,玩一玩再说。分了3个区,“/”根目录分区20G、“swap”内存交换空间500M、“/boot”目录分区100M。基本服务器。Linux的装机在linux系统中,每个设备都被当成一个文件来..
分类:
系统相关 时间:
2014-11-22 19:03:23
阅读次数:
291
介绍
/dev/shm/是一个使用就是tmpfs文件系统的设备,其实就是一个特殊的文件系统。redhat中默认大小为物理内存的一半,使用时不用mkfs格式化。
tmpfs是Linux/Unix系统上的一种基于内存的虚拟文件系统。tmpfs可以使用您的内存或swap分区来存储文件(即它的存储空间在virtual
memory 中, VM由real
memory...
分类:
系统相关 时间:
2014-11-22 16:07:49
阅读次数:
273