You are given an m * n matrix, mat, and an integer k, which has its rows sorted in non-decreasing order. You are allowed to choose exactly 1 element f ...
分类:
其他好文 时间:
2020-05-03 18:14:33
阅读次数:
59
题目 Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in ea ...
分类:
其他好文 时间:
2020-05-02 21:01:34
阅读次数:
57
1.添加新的用户 允许本地 IP访问localhost的Mysql数据库 mysql> create user 'test'@'localhost' identified by 'test123456'; Query OK, 0 rows affected (0.06 sec) 允许所有的IP都可以 ...
分类:
数据库 时间:
2020-05-02 14:34:10
阅读次数:
71
System类 1、public static long currentTimeMillis()返回当前时间(以毫秒为单位)。 请注意,虽然返回值的时间单位为毫秒,但该值的粒度取决于底层操作系统,并且可能较大。 例如,许多操作系统以几十毫秒为单位测量时间。 2、public static void ...
分类:
其他好文 时间:
2020-05-01 20:54:07
阅读次数:
64
一、获取我的流程实例信息 /learun/adms/workflow/mylist 参数: pagination:分页参数; rows: 每页行数; page: 当前页; sidx: 排序列; sord: 排序类型; queryJson:查询条件; 二、获取我的任务列表 /learun/adms/w ...
分类:
其他好文 时间:
2020-05-01 12:22:23
阅读次数:
351
1、判断为空 小白写法 优雅写法: 问题:我们编写js代码时经常遇到复杂逻辑判断的情况,通常大家可以用if/else或者switch来实现多个条件判断,但这样会有个问题,随着逻辑复杂度的增加,代码中的if/else/switch会变得越来越臃肿,越来越看不懂. 2、多条件判断 小白写法 优雅写法: ...
分类:
编程语言 时间:
2020-04-30 21:10:04
阅读次数:
83
在使用Navicat Premium 12连接MySQL数据库时会出现Authentication plugin 'caching_sha2_password' cannot be loaded的错误。 出现这个原因是mysql8 之前的版本中加密规则是mysql_native_password,而 ...
分类:
数据库 时间:
2020-04-30 17:50:37
阅读次数:
106
解析分析线上30分中26G的binlog,排查阿里云RDS主库插入ROWS和监控数据不匹配问题。解析binlog汇总到一起:foriinls/mnt/bi/;do/opt/software/mysql-8.0.19-linux-glibc2.12-x86_64/bin/mysqlbinlog-v--base64-output=decode-rows$i>>all_decoded.sql
分类:
其他好文 时间:
2020-04-30 15:23:31
阅读次数:
69
题目:输入一个正整数,要求从个位开始依次输出每一位数字。 方法1: 把输入的整数看作一个字符串,然后得到这个数的位数(k),也就是长度,然后遍历循环这个整数的位数k次,每循环一次k - 1,这样就会依次输出k对应的倒数第一个字符 ,k-1对应的倒数第二个字符, k-2对应的倒数第3个字符....也就 ...
分类:
其他好文 时间:
2020-04-30 10:03:24
阅读次数:
145
今天我想安装mariadb-server服务,但是突然间报了这么多错误。 [root@chaofeng ~]# yum install mariadb-server Loaded plugins: fastestmirror Loading mirror speeds from cached hos ...
分类:
数据库 时间:
2020-04-29 18:20:09
阅读次数:
460