#时间复杂度O(N*N),空间复杂度O(1) #暴力法 def twoSum_baoli(nums: List[int], target:int) -> List[int]: for i in range(len(nums)-1): base = nums[i] for j in range(i+1 ...
分类:
编程语言 时间:
2021-05-04 15:39:57
阅读次数:
0
Computer Networking: a Top-Down Approach (8th ed.) : Select Lectures Notes Navigator 1 Resources and Introduction 2 Chapter 1: Introduction 3 Chapter ...
分类:
Web程序 时间:
2021-05-04 15:21:01
阅读次数:
0
\(\text{Problem}:\)Substrings in a String \(\text{Solution}:\) 考虑分块,对每个块建出后缀自动机。 修改:暴力重建 \(i\) 所在块的 \(\text{SAM}\)。 查询:分类讨论处理。 若 \(\lvert s\rvert> B\) ...
分类:
其他好文 时间:
2021-05-04 15:19:13
阅读次数:
0
untrack表示是新文件,没有被add过,是为跟踪的意思。 not staged 表示add过的文件,即跟踪文件,再次修改没有add,就是没有暂存的意思 具体看: https://git-scm.com/book/zh/v2/Git-%E5%9F%BA%E7%A1%80-%E8%AE%B0%E5% ...
分类:
其他好文 时间:
2021-05-04 15:14:56
阅读次数:
0
import lombok.extern.slf4j.Slf4j; import org.springframework.util.StringUtils; import java.util.ArrayList; import java.util.List; import java.util.Sta ...
分类:
其他好文 时间:
2021-05-03 12:46:12
阅读次数:
0
/* 写一个计算器,要求实现加减乘除功能, 并且能够循环接收新的数据,通过用户交互实现 分析:写四个方法加减乘除 利用循环加switch进行用户交互 传递需要操作的两个数 输出结果 */ public class Demo05 { //加法 public static double add(doub ...
分类:
编程语言 时间:
2021-05-03 12:41:29
阅读次数:
0
接口自动化测试 node --version nodejs版本信息 npm install -g newman 安装newman newman --version 输出newman版本信息 newman run d:\test.json 运行postman文件 postman软件网址: https: ...
分类:
其他好文 时间:
2021-05-03 12:27:06
阅读次数:
0
Mysql性能调优(三) 前言 最近的文章均是给大家介绍mysql的性能优化,前两篇文章我们分别介绍了索引的相关知识,主要包括:索引的基本概念、引用索引的优缺点、索引的底层结构、索引的分类以及应用索引的设计原则及其语法。接下来的文章又介绍了视图以及触发器,分别介绍视图以及触发器的概念、创建、修改以及 ...
分类:
数据库 时间:
2021-05-03 12:24:18
阅读次数:
0
在介绍spring的启动之前,先来说下启动过程中使用到的几个类 基本组件 1、BeanFactory:spring底层容器,定义了最基本的容器功能,注意区分FactoryBean 2、ApplicationContext:扩展于BeanFactory,拥有更丰富的功能。例如:添加事件发布机制、父子级 ...
分类:
编程语言 时间:
2021-05-03 12:18:32
阅读次数:
0
一、打开nginx机器的nginx配置文件 命令: locate nginx.conf 会列出所有nginx.conf文件的地址, 一般咱们要用的nginx配置文件是/usr/local/nginx/conf/nginx.conf cd /usr/local/nginx/conf vim nginx ...
分类:
其他好文 时间:
2021-05-03 12:11:25
阅读次数:
0