即使AC,但此算法仍有不足之处,不能正确处理行最小、列最大+相等的矩阵情况。如22 23应为A[1][1]、A[2][1] 1 #include 2 #define MAX_SIZE 100+1 3 using namespace std; 4 int array[MAX_SIZE][MAX_SI....
分类:
其他好文 时间:
2015-02-13 22:20:54
阅读次数:
206
单链表比较简单,写起来也没费什么事。
下面奉上代码。如有 bug,欢迎指出。
// SingleList.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include
enum E_State
{
E_State_Error = 0,
E_State_OK = 1,
};
typedef int ElementType;
struct si...
分类:
其他好文 时间:
2015-02-13 16:45:18
阅读次数:
174
Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to si...
分类:
其他好文 时间:
2015-02-13 09:11:27
阅读次数:
176
Linux磁盘管理命令
dfdiskfree
显示磁盘的相关信息
df[-aHhiklmPT][--block-sze=<区块大小>][-t文件系统类型][-x文件系统类型]
参数:
-a或all包含全部的文件系统
-h以可读性较高的方式来显示信息
-H或-si与-h相同,但是在计算是已1000bytes为单位而非1024
-i显示iNode..
分类:
系统相关 时间:
2015-02-12 02:04:07
阅读次数:
258
Linux磁盘管理命令
dfdiskfree
显示磁盘的相关信息
df[-aHhiklmPT][--block-sze=<区块大小>][-t文件系统类型][-x文件系统类型]
参数:
-a或all包含全部的文件系统
-h以可读性较高的方式来显示信息
-H或-si与-h相同,但是在计算是已1000bytes为单位而非1024
-i显示iNode..
分类:
系统相关 时间:
2015-02-12 02:01:46
阅读次数:
296
要邀请n个人参加party,每个人有力量值strength Si和魅力值 beauty Bi,如果存在两人S i ≤ S j and B i ≥ B j 或者 S i ≥ S j and B i ≤ B j 他们两个会产生冲突,问在不产生冲突的条件下,最多能邀请到几个人?【LIS】一开始将所有人按照...
分类:
其他好文 时间:
2015-02-11 10:41:16
阅读次数:
149
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The si...
分类:
其他好文 时间:
2015-02-10 14:38:29
阅读次数:
117
import java.io.ByteArrayInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.net.SocketException; import java.text.Si...
分类:
编程语言 时间:
2015-02-10 10:24:12
阅读次数:
236
us 用户空间占用CPU百分比 sy 内核空间占用CPU百分比 ni 用户进程空间内改变过优先级的进程占用CPU百分比 id 空闲CPU百分比 wa 等待输入输出的CPU时间百分比 hi 硬件中断 si 软件中断 st: 实时?...
分类:
系统相关 时间:
2015-02-09 18:46:04
阅读次数:
147
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight forward solution using O(mn) space is probably a bad idea.A si...
分类:
其他好文 时间:
2015-02-09 12:53:24
阅读次数:
217