public class MinStack { /** initialize your data structure here. */ Stack<Integer> stack = new Stack<>(); private int min = Integer.MIN_VALUE; List<In ...
分类:
其他好文 时间:
2020-08-10 22:08:46
阅读次数:
86
Yes, even though they probably certainly know that you probabaly wouldn't, they don't certainly know that although you probably wouldn't, there's no p ...
分类:
其他好文 时间:
2020-08-10 19:47:20
阅读次数:
112
WindowManager显示负坐标,需要设置LayoutParamsflag为FLAG_LAYOUT_NO_LIMITSLayoutParamstype为2007以上PopupWindow也是设置WindowManager的,查看了内部代码,.要设置flag为FLAG_LAYOUT_NO_LIMITS,则需要在setContentView之前设置thissetClippingEnabled(fa
链接: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
一、使用submit提交表单 使用html5的标签 //在必填表单项中添加required 二、使用点击事件提交表单 注意:必须将表单属性改为button //1、input形式 <input id="registerbtn" type="button" value="注册"/> //2、butto ...
分类:
其他好文 时间:
2020-08-03 18:38:35
阅读次数:
86
[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