我目前所在公司开发团队比较小,为集团下面的工厂开发了一套小的系统,跑在一台CentOS服务器上,服务器搭建了docker环境,安装了docker-compose,但在日志处理方面,暂时没有一个好的方法能够收集完全的日志,只能依赖进入至服务器后,以docker logs containerID的方法来 ...
分类:
其他好文 时间:
2019-06-18 19:53:24
阅读次数:
255
$ xrandrScreen 0: minimum 1 x 1, current 1680 x 900, maximum 8192 x 8192Virtual1 connected primary 1680x900+0+0 (normal left inverted right x axis y a ...
分类:
其他好文 时间:
2019-06-16 11:25:53
阅读次数:
230
这个题有两个版本 Merge Music Files 组装零件 类似: https://leetcode.com/problems/minimum-cost-to-merge-stones/description/ 1. 有一串正整数,非排序的。先挑两个数字加起来,把这个和记下来,比如说s1。再在剩 ...
分类:
其他好文 时间:
2019-06-15 09:35:04
阅读次数:
97
题目描述 Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there i ...
分类:
其他好文 时间:
2019-06-13 15:35:07
阅读次数:
85
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:
其他好文 时间:
2019-06-09 18:26:42
阅读次数:
100
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ import ... ...
分类:
其他好文 时间:
2019-06-08 15:11:15
阅读次数:
99
题目链接 http://codeforces.com/problemset/problem/1009/B 题意 给一个只含0、1、2串,只能做相邻的01交换或者相邻的12交换操作,问经过数次操作(可以是0次)能得到的最小字典序的串是什么。 题解 思维题 关键是把题意理解为:固定0、2的相对位置,往里 ...
分类:
其他好文 时间:
2019-06-07 00:26:17
阅读次数:
84
原文链接www.cnblogs.com/zhouzhendong/p/AGC031F.html 草率题解 对于每两个相邻位置,把他们拿出来。 如果这两个相邻位置都有确定的值,那么不管他。 然后把所有的这些数拿出来,分为两类,一类是没有被填入的,一类是被填入的。 然后大力DP即可。由于没有被填入的可以 ...
分类:
其他好文 时间:
2019-06-05 10:10:47
阅读次数:
192
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:
其他好文 时间:
2019-06-04 22:07:27
阅读次数:
101