CPU指标Averageload上一分钟同时处于“就绪”状态的平均进程数,< CPU个数 * 核心数 * 0.7CPUutilizationCPU的使用时间百分比,如果在75%以上,则可以考虑换CPU了Swap-inrate正在交换的进程数Swap-outrate正在交换的进程数Contextswi...
分类:
其他好文 时间:
2014-08-07 13:02:29
阅读次数:
224
题目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 singl...
分类:
其他好文 时间:
2014-08-07 12:51:00
阅读次数:
188
An apparatus comprising a plurality of storage nodes comprising a plurality of corresponding storage disks and configured to store data in a distribut...
分类:
移动开发 时间:
2014-08-07 03:01:28
阅读次数:
456
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-08-07 00:37:17
阅读次数:
187
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].Not...
分类:
其他好文 时间:
2014-08-07 00:15:17
阅读次数:
187
这2天 做的都是有关矩阵的 =-=....小小矩阵 竟然有这么多 花头...这题 的特点是 We can swap any two columns any times 就是可以任意交换X列与Y列 任意次一开始 我还担心我的方法 会不会tle 看到3000ms就放心了。。。我总觉得 会有更高效的方法 ...
分类:
其他好文 时间:
2014-08-06 18:14:41
阅读次数:
263
本文介绍两种增加交换分区(swap)的方法。第1种方法:建立虚拟内存文件1、创建512M的空文件 dd if=/dev/zero of=/tmp/swap1 bs=1M count=5122、格式化为交换分区 mkswap /tmp/swap13、查看交换分区大小 free4、挂载交换分区 swap...
分类:
其他好文 时间:
2014-08-06 17:17:01
阅读次数:
264
Problem Description
bobo has a sequence a1,a2,…,an. He is allowed to swap two adjacent numbers for no more than k times.
Find the minimum number of inversions after his swaps.
Note: The numbe...
分类:
其他好文 时间:
2014-08-06 14:51:38
阅读次数:
177
如何设置Linux swap分区看到不少朋友问linux下swap分区的问题,收集到一篇 不错的文章 ,分享下。什么是Swap?Swap,即交换区,除了安装Linux的时候,有多少人关心过它呢?其实,Swap的调整对Linux服务器,特别是Web服务器的性能至关重要。通过调整Swap,有时可以越过系...
分类:
系统相关 时间:
2014-08-06 06:14:50
阅读次数:
348
Another list manipulation problem.class Solution {public: ListNode *reverseKGroup(ListNode *head, int k) { if (!head) return head; if...
分类:
其他好文 时间:
2014-08-06 06:14:10
阅读次数:
232