题目地址:632. 最小区间 You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k li ...
分类:
其他好文 时间:
2020-08-26 17:10:59
阅读次数:
46
Flutter之Decoration(边框、圆角、阴影、形状、渐变、背景图像等) 1 继续关系: BoxDecoration:实现边框、圆角、阴影、形状、渐变、背景图像 ShapeDecoration:实现四个边分别指定颜色和宽度、底部线、矩形边色、圆形边色、体育场(竖向椭圆)、 角形(八边角)边色 ...
分类:
其他好文 时间:
2020-08-25 18:45:45
阅读次数:
66
package LeetCode_264 import java.util.* /** * 264. Ugly Number II * https://leetcode.com/problems/ugly-number-ii/description/ * * Write a program to f ...
分类:
其他好文 时间:
2020-08-25 18:44:01
阅读次数:
53
package LeetCode_264 import java.util.* /** * 264. Ugly Number II * https://leetcode.com/problems/ugly-number-ii/description/ * * Write a program to f ...
分类:
其他好文 时间:
2020-08-25 18:43:43
阅读次数:
51
1.引言我们通常使用JavaStreamAPI来处理数据集合。一个不错的特性是支持对数字流的操作,比如sum操作。但是,我们不能以这种方式处理所有数值类型在本文中,我们将了解如何对诸如BigDecimal之类的数字流执行sum操作。2.如何用流求和StreamAPI提供数字流numbersStream,包括IntStream、DoubleStream、和LongStream我们通过创建一个数字流来
<?php /** * @param array $arr 递增数字数组 * @param int $number 待查找的数字 * @return int 返回找到的键 */ function binary_search($arr,$number){ // 非数组或数组为空,返回-1 if(!is ...
分类:
其他好文 时间:
2020-08-20 19:22:52
阅读次数:
94
有一个需求就是,只能输入一个大于0的正整数,于是乎使用elemnt ui 的inputNumer控件,但是使用的时候添加了属性step和step-strictly两个属性,问题就来了,输入了一个小数值,虽然页面上四舍五入成功显示成了正整数,但是实际上后台的数字还是v-mode的值还是一个小数值 解决 ...
分类:
其他好文 时间:
2020-08-20 19:15:29
阅读次数:
146
1.Django + Channels 提供 websocket 服务 1.1.确保你的环境 windows 环境 python 3.7 目前不支持 3.8 类Unix操作系统除外 pip install django == 2.2 # 以上 目前 Django3.0 pip install cha ...
分类:
Web程序 时间:
2020-08-20 18:59:00
阅读次数:
78
4.部署Kubernetes集群1.节点信息ip主机名角色操作系统192.168.157.130master主centeos7192.168.157.131ode1节点Centos7192.168.157.132node2节点Centos72.关闭防火墙相关systemctlstopfirewalld.servicesystemctlstopiptables.servicesystemctldis
分类:
Web程序 时间:
2020-08-19 20:08:12
阅读次数:
109
Implement a method to find the second largest number in an array of ints. If the input array is empty or contains only a single number, the method mus ...
分类:
其他好文 时间:
2020-08-18 13:58:14
阅读次数:
82