链接:https://leetcode-cn.com/problems/lru-cache/ 代码 /* * @lc app=leetcode.cn id=146 lang=cpp * * [146] LRU缓存机制 */ // @lc code=start class LRUCache { pub ...
分类:
其他好文 时间:
2020-08-08 17:39:19
阅读次数:
63
一、redis集群节点修改 #添加和删除节点的流程 1.新节点添加槽位 2.源节点中的数据进行迁移 3.源节点数据迁移完毕 4.迁移下一个槽位的数据,依次循环 1.添加节点 1)准备新机器 [root@db02 ~]# mkdir /service/redis/{6381,6382} [root@d ...
分类:
其他好文 时间:
2020-08-07 21:42:57
阅读次数:
70
https://www.cnblogs.com/yeungchie/ code ;创建一个选项A A = hiCreateMenuItem( ?name 'A ?itemText "A" ) ;创建一个选项B B = hiCreateMenuItem( ?name 'B ?itemText "B" ...
分类:
其他好文 时间:
2020-08-06 23:16:26
阅读次数:
127
随着信息时代的快速发展,人们更加追求高质量的生活,所以应运而生了各式各样的软件为人们提供便利。那么问题来了,我作为一个独立开发商,我设计出来了一款软件,各种功能都很好,但是我该如何让别人知道我的软件呢?这时云市场的作用是不是就凸显出来了。
分类:
其他好文 时间:
2020-08-04 18:23:25
阅读次数:
135
rc.local 是一个早期的产物用来进行启动配置的管理(还可以进行开机自启动服务的管理)实际上systemd 也是可以直接使用 rc.local ,使用上很简单,就是添加执行权限,同时添加自己的shell 代码就可以了 一些说明 实际上 rc.local 添加了执行权限之后,使用的就是rc-loc ...
分类:
其他好文 时间:
2020-08-03 23:14:24
阅读次数:
113
[GKCTF2020]cve版签到 题目提示 cve-2020-7066 Hint: Flag in localhost Tips: Host must be end with '123' You just view *.ctfhub.com 题目原型 #79329 get_headers() si ...
分类:
Web程序 时间:
2020-08-01 21:18:34
阅读次数:
154
目前研究的是HorizontalLayout和VerticalLayout: 1.HorizontalLayout:中只有childvalign(top,vcenter,bottom)可以对所有子控件生效 2.VerticalLayout:中只有childalign(left,center,righ ...
分类:
其他好文 时间:
2020-07-31 19:18:22
阅读次数:
86
You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. 要求如果 ...
分类:
数据库 时间:
2020-07-30 22:18:19
阅读次数:
265
Zhang3 a participant of IPhO (Immortal Physics Olympiad). The $0^\mathrm$ problem in the contest is as follows. There are two balls that weigh \(a\) k ...
分类:
其他好文 时间:
2020-07-30 22:15:00
阅读次数:
110
今天真$TM$又菜鸡了,无路赛无路赛。 估分:$100 + 0 + 40 = 140$ 考场:$30 + 0 + 40 = 70$ \(T1\) 算错时间复杂度了。。。我的莫队+倍增(看上去很高级的做法)是$O(n*sqrt(n)*logn)$,极限$19s$。。。 无语了,正解是线段树或者分块+\ ...
分类:
其他好文 时间:
2020-07-30 18:11:51
阅读次数:
57