给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: s = "abcabcbb"输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。示例 2: 输入: s = "bbbbb"输出: 1解释: 因为无重复字符的最长子串是 "b",所以其长度为 ...
分类:
其他好文 时间:
2021-04-19 15:17:18
阅读次数:
0
sudo vi打开 /etc/mysql/mysql.conf.d/mysqld.cnf常用vim命令i 修改文本Ese 推出修改:wq 保存退出:q! 强制退出修改bind_ip为ubuntu ipifconfig -a查看ubuntu ip sudo ufw allow 3306 打开3306端 ...
分类:
数据库 时间:
2021-04-16 12:06:44
阅读次数:
0
1.状态定义 dp[i]代表凑齐总价值 i 需要的最少硬币个数; 2.状态转移方程 for(int coin : coins) dp[i] = Math.min(dp[i], dp[i - coin] + 1); 322. 零钱兑换 class Solution { public int coinC ...
分类:
其他好文 时间:
2021-04-16 11:58:54
阅读次数:
0
cat <<EOF > kubernetes.repo[kubernetes]name=Kubernetesbaseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64enabled=1gpgcheck=1 ...
分类:
Web程序 时间:
2021-04-16 11:56:03
阅读次数:
0
通过官方Docker Registry在局域网内部搭建私有镜像注册中心. 1 - 拉取registry镜像 [anliven@anliven ~]$ cat /etc/system-release # 本机系统版本 CentOS Linux release 7.8.2003 (Core) [anli ...
分类:
其他好文 时间:
2021-04-15 12:32:53
阅读次数:
0
先搭建本地YUM源 确认系统版本 [root@moke ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@moke ~]# 准备资源: http://mirror.nsc.liu.se/centos-stor ...
分类:
其他好文 时间:
2021-04-15 12:18:08
阅读次数:
0
需要注意以下两点: 如果你使用的是https://github.com/BruceZhaoR/Zh-beamer提供的模版,切记把文件beamer_default.tex里面 \usepackage{xecjk} 改成 \usepackage{xeCJK} 如果你使用macOS且用了https:// ...
分类:
其他好文 时间:
2021-04-14 12:30:51
阅读次数:
0
systemd systemd 是 Linux 系统工具,用来启动守护进程,已成为大多数发行版的标准配置 1. 由来 历史上,Linux 的启动一直采用 init 进程,下面的命令用来启动服务 $ /etc/init.d/httpd start # 或者 $ service httpd start ...
分类:
其他好文 时间:
2021-04-14 12:06:39
阅读次数:
0
打开/etc/mysql/mysql.cnf 找到bind-address= 127.0.0.1 把它改成 bind-address= 0.0.0.0 (mysql5.7.24版本,配置文件目录是:/etc/mysql/mysql.conf.d/mysqld.cnf) 命令:service mysq ...
分类:
数据库 时间:
2021-04-14 11:58:38
阅读次数:
0
思路:遍历判断每个数的正负 class Solution { public: int arraySign(vector<int>& nums) { int ans = 1; for(auto &n : nums){ if(n == 0) return 0; ans *= (n > 0) ? 1 : ...
分类:
编程语言 时间:
2021-04-13 12:40:39
阅读次数:
0