题目英文版: The only difference between the easy and the hard versions is the maximum value of k. You are given an infinite sequence of form "1121231234123 ...
分类:
其他好文 时间:
2020-04-28 12:33:44
阅读次数:
91
文件存放位置:(共三处)/etc/systemd/system//usr/lib/systemd/system/lib/systemd/system 文件内容: $cat sshd.service [Unit] Description=OpenSSH server daemon Documentat ...
分类:
其他好文 时间:
2020-04-28 09:57:56
阅读次数:
437
2020-04-25 18:19:22 问题描述: 给定一个长度为n的数组a,它有n * (n + 1) / 2个子数组。请计算这些子数组的和,然后按照升序排列,并返回排序后第k个数。 样例 Example1 Input: [2,3,1,4] 6 Output:5 Explanation: 我们可以 ...
分类:
编程语言 时间:
2020-04-25 19:13:36
阅读次数:
60
前言 后台程序开发及上线时,一般都会用到Log信息打印及Log日志记录,开发时通过Log信息打印可以快速的定位问题所在,帮助我们快捷开发。程序上线后如遇到Bug或错误,此时则需要日志记录来查找发现问题所在。 Spring Boot 可以集成很多不同的日志系统,目前有关日志的开源代码很多,如log4j ...
分类:
编程语言 时间:
2020-04-25 00:39:00
阅读次数:
73
Sass @mixin 与 @include @mixin 指令允许我们定义一个可以在整个样式表中重复使用的样式。 @include 指令可以将混入(mixin)引入到文档中。 @mixin important-text { color: red; font-size: 25px; font-wei ...
分类:
其他好文 时间:
2020-04-24 14:45:49
阅读次数:
68
目标 使用 kubectl 伸缩应用程序。 Scaling(伸缩)应用程序 在之前的文章中,我们创建了一个 Deployment,然后通过 服务 提供访问 Pod 的方式。我们发布的 Deployment 只创建了一个 Pod 来运行我们的应用程序。当流量增加时,我们需要对应用程序进行伸缩操作以满足 ...
分类:
其他好文 时间:
2020-04-23 01:04:15
阅读次数:
85
笔录 /// <summary> /// 解决IE文件名乱码方法 /// </summary> /// <param name="fileName">文件名</param> /// <returns></returns> public static string clFielName(string ...
1. nginx 版本要高,1.12 以上,且有 --with-stream 模块,测试地址: 10.4.17.68 2. 物理机 nginx 必须将以下配置添加在nginx.conf中,http 模块外 stream { upstream udpserver { server 10.16.0.23 ...
分类:
其他好文 时间:
2020-04-21 15:15:26
阅读次数:
123
public class User { public int ID { get; set; } public int Name { get; set; } } List<User> result = new List<User>(); result = result.Where((x, i) => ...
#!/bin/bash ##创建用户user01-user10的用户 for i in `seq -w 01 10`; do id user$i &>/dev/null if [ $? -eq 0 ];then echo "user$i is exsit" else useradd user$i e ...
分类:
其他好文 时间:
2020-04-19 00:49:47
阅读次数:
61