依赖倒置原则 依赖倒置原则(Dependence Inversion Principle,DIP) 原始定义: 高层模块不应该依赖低层模块,两者都应该依赖其抽象;抽象不应该依赖细节,细节应该依赖抽象 (High level modules shouldnot depend upon low leve ...
分类:
其他好文 时间:
2020-09-18 00:22:40
阅读次数:
29
##C++版本: Tarjan强联通分量 void tarjan(int u) { int v; dfn[u] = low[u] = ++in; instack[u] = true; Stap[++stop] = u; for (int i = head[u]; i; i = eg[i].nex) ...
分类:
移动开发 时间:
2020-09-18 00:10:24
阅读次数:
50
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I ...
分类:
其他好文 时间:
2020-09-18 00:08:22
阅读次数:
27
一、pytest使用步骤: 1、导入pytest 2、编写测试用例 无需在测试类下编写测试用例,可以直接编写测试函数 测试函数名中必须包含test_,_test 3、在pytest框架下执行测试用例 在py文件内执行测试用例 pytest.main(“-s test_case_01.py”) -s输 ...
分类:
其他好文 时间:
2020-09-17 21:52:52
阅读次数:
35
ABC咕咕咕 D. Polycarp and Div 3 题意:给一个数字串,问最多能选出几个不相交的子串使得它们组成的 $10$ 进制数都是 $3$ 的倍数。 \(|s| \leq 2\times 10^5\) 题解: \(dp_{i,j}\) 表示第 \(i\) 为,数字和 \(\%3\) 为 ...
分类:
其他好文 时间:
2020-09-17 21:27:54
阅读次数:
28
参考:https://labuladong.gitbook.io/algo/dong-tai-gui-hua-xi-lie/dong-tai-gui-hua-zhi-bo-yi-wen-ti 问题: 给定一堆石子的得分。A和B两个人进行如下游戏, 轮流,从石堆的两边选择一个石子,最终获得得分最大的人 ...
分类:
其他好文 时间:
2020-09-17 20:37:47
阅读次数:
21
struct if else switch case break continue default while do……while for
分类:
编程语言 时间:
2020-09-17 20:13:54
阅读次数:
30
JDK开发环境搭建及环境变量配置(win10): https://blog.csdn.net/qq_37904780/article/details/81204326?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMa ...
关键字和保留字 1. 标识符 标识(zhi)符:就是指开发人员为变量、属性、函数、参数取的名字。 标识符不能是关键字或保留字。 1. 关键字 关键字:是指 JS本身已经使用了的字,不能再用它们充当变量名、方法名。 包括:break、case、catch、continue、default、delete ...
分类:
其他好文 时间:
2020-09-17 16:56:30
阅读次数:
34
目录 前言 什么是动态SQL? 常用的标签 if choose、when、otherwise where foreach set sql include 总结 拓展一下 Mybatis中如何避免魔数? 如何引用其他XML中的SQL片段? 总结 前言 通过前两篇的文章我们了解了Mybatis基本的CR ...
分类:
数据库 时间:
2020-09-17 16:05:59
阅读次数:
37