461. Hamming Distance Easy Easy Easy The Hamming distance between two integers is the number of positions at which the corresponding bits are differen ...
分类:
其他好文 时间:
2019-12-09 01:33:05
阅读次数:
101
#include #include #include #include // union semun { // int val; // struct semid_ds *buf; // unsigned short *array; // struct seminfo *__buf; // }; in... ...
分类:
其他好文 时间:
2019-12-08 23:26:08
阅读次数:
122
new的过程 js // new运算的过程 / 1、创建一个空对象; 2、该空对象的原型指向构造函数(链接原型):将构造函数的 prototype 赋值给对象的 __proto__属性; 3、绑定 this:将对象作为构造函数的 this 传进去,并执行该构造函数; 4、返回新对象:如果构造函数返回 ...
分类:
其他好文 时间:
2019-12-08 23:16:38
阅读次数:
111
在OPatch安装补丁的时候,提示“Missing command :fuser”
分类:
数据库 时间:
2019-12-08 23:09:19
阅读次数:
318
如果一个broker正常退出,是会删除abort文件的。那么启动broker的时候发现abort文件还存在,那么说明上次是异常终止,会进入到commit-log的recoverAbnormally逻辑里面,因为所有其他的信息都是从commit-log获取到的,所以追根溯源只能从commit-log开 ...
分类:
其他好文 时间:
2019-12-08 22:49:36
阅读次数:
182
Adding display: flex to an element turns it into a flex container. This makes it possible to align any children of that element into rows or columns. ...
分类:
Web程序 时间:
2019-12-08 22:45:24
阅读次数:
114
flask-信号 Flask框架中的信号基于blinker,其主要就是让开发者可是在flask请求过程中定制一些用户行为。 1 pip3 install blinker 1. 内置信号 1 2 3 4 5 6 7 8 9 10 11 12 13 14 request_started = _signa ...
分类:
其他好文 时间:
2019-12-08 21:29:53
阅读次数:
84
Java【基础学习】之暴力求素数【用数组返回】 1 */ 2 import java.util.*; 3 public class Main{ 4 public static void main(String[] args) { 5 Scanner sc=new Scanner(System.in) ...
分类:
编程语言 时间:
2019-12-08 21:28:53
阅读次数:
116
"Contest" (2020cj_105) 0+10+20 T1忽略了插入一个数要减掉原来的贡献导致样例没看懂跳了,后面回来写费用流没空写了。 T2第二档写个LCT思维受限?只想着原树的根不能变没想到可以改根之后再改回来。 然后有三个$O(n^2)$或者$O(n^2\log n)$的暴力,我写了一 ...
分类:
其他好文 时间:
2019-12-08 17:23:37
阅读次数:
100
又一次参赛,除了第一道Easy题和第二道Medium外,剩下的两道在有限时间内,要么没思路,要么思路不对,超时,要么有思路调试出错,还需多加练习! (这次的第三题,在循环从1开始,直到找到满足地为止,早就预料到会超时,提交之后果然Time out,切换思路,二分查找,但是有限时间内,没有调试正确!这 ...
分类:
其他好文 时间:
2019-12-08 16:04:03
阅读次数:
220