CCSU团队训练赛 H - Billionaires URAL - 1650 ? You probably are aware that Moscow holds the first place in the world with respect to the number of billionai ...
分类:
其他好文 时间:
2020-06-28 22:22:44
阅读次数:
149
六月箴言 走好选择的路,别选择好走的路,你才能拥有真正的自己。—— 杨绛 第十三章 真实世界中的模式 定义设计模式 模式是在某情景下,针对某问题的某种解决方案。 情景就是应用某个模式的情况。这应该是会不断出现的情况。 问题就是你想在某情景下达到的目标,单也可以是某情景下的约束。 解决方案就是你所追求 ...
分类:
其他好文 时间:
2020-06-28 22:22:25
阅读次数:
61
与设计模式相处 定义设计模式 模式时在某情境下,针对某问题的某种解决方案 情境,就是应用某个模式的情况,这应该是会不断出现的情况。 问题,就是你想在某情境下达到的目标,但也可以是某情境下的约束。 解决方案,就是你说追求的一个通用的设计,用来解决约束、达到目标。 如果你发现自己处于某个情境下,面对着所 ...
分类:
其他好文 时间:
2020-06-28 20:49:13
阅读次数:
44
常规方法: 1 void SobelAmplitude(Mat &sobelx, Mat &sobely, Mat &SobelXY) { 2 SobelXY = Mat::zeros(sobelx.size(), CV_32FC1); 3 for (int i = 0; i < SobelXY.r ...
分类:
其他好文 时间:
2020-06-28 18:24:46
阅读次数:
51
跳转的 // 字符串 this.$router.push('/home/first') // 对象 this.$router.push({ path: '/home/first' }) // 命名的路由 this.$router.push({ name: 'home', params: { user ...
分类:
其他好文 时间:
2020-06-28 14:55:29
阅读次数:
38
树——存储结构 双亲表示法(顺序存储) 双亲表示法:每个节点中保存指向双亲的“指针” #define MAX_TREE_SIZE 100 //树中最多的结点数 typedef struct{ //树的结点定义 ElemType data; //数据元素 int parent; //双亲位置域 }PT ...
分类:
其他好文 时间:
2020-06-28 13:06:22
阅读次数:
76
var cars = ["Banana", "Orange", "Apple", "Mango"]; var x = cars.length; // length 属性返回元素的数量var y = cars.sort(); // sort() 方法对数组进行排序 var first = cars[0 ...
分类:
编程语言 时间:
2020-06-28 09:38:11
阅读次数:
59
41. 缺失的第一个正数 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/first-missing-positive 题目 给你一个未排序的整数数组,请你找出其中没有出现的最小的正整数。 示例 1: 输入: [1,2,0] 输出: 3 示例 2: ...
分类:
编程语言 时间:
2020-06-27 18:38:48
阅读次数:
62
#Path类 python对系统文件操作的类 ###导入 from pathlib import Path ###初始化 对文件或者目录进行初始化 p = Path() #对当前目录进行初始化 p1 = Path('/etc/ssh/sshd_config') #对文件进行初始化 p2 = Path ...
分类:
编程语言 时间:
2020-06-27 11:45:21
阅读次数:
78
Count and Say (E) 题目 The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 ...
分类:
其他好文 时间:
2020-06-27 10:01:45
阅读次数:
74