思路 暴力解决 注意事项 数字转字符,字符转数字 code=10的时候,是'X' #include<bits/stdc++.h> using namespace std; /* run this program using the console pauser or add your own get ...
分类:
其他好文 时间:
2020-06-19 22:57:24
阅读次数:
58
dd命令 dd if=/PATH/FROM/SRC of=/PATH/TO/DEST bs=# block size ,复制单元大小 count=# ,复制多少个bs 磁盘拷贝: dd if=/dev/sda of=/dev/sdb 备份MBR: dd if=/dev/sda of=/tmp/mbr ...
分类:
其他好文 时间:
2020-06-19 14:08:35
阅读次数:
54
mysql多实例部署 下载软件 [root@localhost ~]# ls anaconda-ks.cfg mysql-5.7.29-linux-glibc2.12-x86_64.tar.gz #安装perl [root@localhost ~]# yum -y install perl 配置用户 ...
分类:
数据库 时间:
2020-06-19 12:10:00
阅读次数:
44
题目描述 leetcode - 19:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 解题关键 链表 碎碎念 中等题因为要求是 一次 循环。所以用两个TreeNode节点tmp和ntmp,ntmp = tmp - ...
分类:
其他好文 时间:
2020-06-19 01:13:10
阅读次数:
59
MySQL备份,使用xtrabackup备份全实例数据时,会造成锁等待吗?那么如果使用mysqldump进行备份呢? 一、xtrabackup和mysqldump会造成锁等待吗? xtrabackup会,它在备份时会产生短暂的全局读锁FTWL(flush table with read lock), ...
分类:
数据库 时间:
2020-06-18 19:55:12
阅读次数:
95
靠 class Solution { public int maxProfit(int[] prices) { int profit=0; for(int i=1;i<prices.length;i++){ int tmp=prices[i]-prices[i-1]; if(tmp>0) profi ...
分类:
其他好文 时间:
2020-06-18 19:30:19
阅读次数:
40
一、404页面配置后不能生效的问题1.配置了404页面,跳转不到根目录的404.html,即打开的错误页面不变,不发生301跳转就显示 /404.htmlerror_page 404 403 /404.html;2.于是配置了 error_page 404 403 https://film.chin ...
分类:
其他好文 时间:
2020-06-18 16:11:25
阅读次数:
72
显然可以直接凑左面全是左括号,右面全是右括号的情况. 然后区间翻转就用 splay 模拟好了. splay 的时候一定注意一点: 如果没有调用 find(x),就一定要手动把 x 及其祖先的节点 pushdown. code; #include <bits/stdc++.h> #define N 1 ...
分类:
其他好文 时间:
2020-06-18 10:54:30
阅读次数:
56
增加ldl g++ -o onecache tmp/eventloop.o tmp/logger.o tmp/main.o tmp/hash.o tmp/redisproto.o tmp/redisproxy.o tmp/redisservant.o tmp/command.o tmp/tcpsoc ...
分类:
其他好文 时间:
2020-06-17 23:14:29
阅读次数:
75
> 输出重定向 >> 输出追加重定向 echo hello A 将字符串hello A输出到屏幕 echo hello A > tmp.txt 将字符串输出重定向,当前目录没有tmp.txt,则创建tmp.txt,并将字符串输出到tmp.txt文件中 tmp.txt内容:hello A echo h ...
分类:
其他好文 时间:
2020-06-17 20:15:05
阅读次数:
90