以内核模块 drbd 为例: 1、创建 /etc/modules-load.d/drbd.conf 中,直接写模块名: drbd 2、创建 /etc/sysconfig/modules/drbd.modules:内容如下 # drbd module exists? /usr/sbin/modinfo ...
分类:
其他好文 时间:
2021-03-29 11:51:34
阅读次数:
0
Description:Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to t ...
分类:
其他好文 时间:
2021-03-18 14:37:13
阅读次数:
0
Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. ...
分类:
其他好文 时间:
2021-03-18 14:32:17
阅读次数:
0
题目链接:http://poj.org/problem?id=2255 递归经典习题。具体见代码: #include <iostream> #include <cstring> using namespace std; char a[111], b[111]; void dfs(int L1, in ...
分类:
其他好文 时间:
2021-03-18 14:30:29
阅读次数:
0
华为交换机配置堆叠,请大家参考。 S5720s-12TP-LI-AC Istack 堆叠配置Leaf1 实施 先关闭物理接口[Leaf1]int g 0/0/11[Leaf1-GigabitEthernet0/0/11]shutdown[Leaf1]int g 0/0/12[Leaf1-Gigabi ...
分类:
其他好文 时间:
2021-03-17 14:24:45
阅读次数:
0
Linux命令cat使用攻略 选项解析: -A, --show-all 等价于 -vET -b, --number-nonblank 对非空输出行(包括仅仅有空格的行)编号,空输出行,指的是该行没有任何内容,即连续2次敲击回车按钮。 -e 等价于 -vE -E, --show-ends 在每行结束处 ...
分类:
系统相关 时间:
2021-03-16 14:12:35
阅读次数:
0
大意: 有 N 块连续的木板,并有 K 个工人来粉刷,但不要求全部粉刷。每个工人有三个参数:L,P,S,表示其最多粉刷连续的 L 块木板,并且每粉刷一块木板可获得 P 元,但所粉刷的木板必须包括第 S 块。输出所能获得最大价值。 思路: dp[i][j] 表示第 i 个人粉刷到第 j 块木板,所获得 ...
分类:
其他好文 时间:
2021-03-16 13:54:41
阅读次数:
0
1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 3.timeout: 要求为Number类型的 ...
分类:
Web程序 时间:
2021-03-16 13:48:26
阅读次数:
0
#include <stdio.h>#include <stdlib.h>typedef struct node { int number; struct node * next;}person;person * initLink(int n) { int i = 0; person * head ...
分类:
其他好文 时间:
2021-03-15 11:31:33
阅读次数:
0
一个图,n个点,n条边,没有重边和自环。 那么多出的一条边必定使他成为基环树。 要求去计算简单路径的个数。 简单路径:与方向无关的路径。 又因为在树上,两点的路径唯一确定,那么路径仅仅与起点与终点有关。 也就是C(2,n)这样。 但是如果路径经过环,那么中间经过环的部分就可以有两种走法。 也就是说答 ...
分类:
其他好文 时间:
2021-03-15 10:49:05
阅读次数:
0