码迷,mamicode.com
首页 >  
搜索关键字:swap nodes in pairs    ( 8848个结果
PAT 1021 Deepest Root
#include #include #include using namespace std;class Node {public: vector adj; bool visited; Node() : visited(false) {}};void reset_nodes(vec...
分类:其他好文   时间:2014-10-16 13:06:32    阅读次数:171
[Leetcode] Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-10-16 06:33:22    阅读次数:238
HPUnix上oracle10g安装与卸载简记
原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明出处,否则追究版权法律责任。 深蓝的blog: 说明: 为节省篇幅,只对安装过程做一个梳理,具体安装的图形化界面同LINUX系统下一样,可以参看相关文章,此处不一一贴图了。 SWAP空间 [root@hp171log]#swapinfo -a       --检查swap空间              K...
分类:数据库   时间:2014-10-16 03:19:43    阅读次数:277
[LeetCode]Binary Tree Preorder Traversal
【题目】 Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recu...
分类:其他好文   时间:2014-10-15 23:57:11    阅读次数:229
性能测试命令字段解释
vmstat 查看系统状态、硬件和系统信息等 $ vmstat 1 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st...
分类:其他好文   时间:2014-10-15 23:29:31    阅读次数:282
leetcode - Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. class Solution { public: ListNode *mergeTwoLists(Li...
分类:其他好文   时间:2014-10-15 15:48:31    阅读次数:127
linux 安装oracle 11g
安装环境 Linux服务器:SuSe10 sp2 64位 Oracle服务器:Oracle11gR2 64位系统要求Linux安装Oracle系统要求系统要求说明内存必须高于1G的物理内存交换空间一般为内存的2倍,例如:1G的内存可以设置swap 分区为3G大小硬盘5G以上2.修改操作系统核心参数....
分类:数据库   时间:2014-10-15 15:00:50    阅读次数:292
mkswap 把一个分区格式化成为swap交换区
mkswap /dev/sda* //创建此分区为swap 交换分区swapon /dev/sda* //加载交换分区swapoff /dev/sda* //关闭交换分区;若想要开机自动挂载:vi /etc/fstab/dev/sda* swap swap defaults 0 0或者把命令写入 /...
分类:其他好文   时间:2014-10-14 19:33:19    阅读次数:207
swap()
一、使用第三方变量实现变量值交换注意:C语言中没有template,C++中有templatevoid swap( T &val1, T &val2 ){ T temp = val1; val1 = val2; val2 = temp;}templatevoid swap( T *v1, T *v2...
分类:其他好文   时间:2014-10-14 12:09:38    阅读次数:147
Partition List
[leetcode]Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x....
分类:其他好文   时间:2014-10-14 11:44:49    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!