启动镜像,映射主机与容器内8888端口 若要映射多个端口,可如下(该方法是在新容器新增映射端口,若想在当前容器修改新增映射端口在文章末尾): 若端口被占用(已映射过),检查下 查看容器id及开启的映射端口,进入容器 执行安装命令: ctrl+d可以直接退出容器 新启一个容器 启动已有容器 列出所有容 ...
分类:
其他好文 时间:
2019-10-24 13:59:10
阅读次数:
266
题意:给定一棵n个点带点权的树,要求从中选出一个点集,使得这些点两两之间距离都大于K,求最大点权和 n,K<=2e2,1<=a[i]<=1e5 思路:树形DP显然可做,极限是n方,然而贪心也是,还比dp好写 可以用寒假camp里cls差不多的想法 从深度大的向上贪心,暴力维护对答案的贡献,即如果贡献 ...
分类:
其他好文 时间:
2019-10-23 22:33:51
阅读次数:
101
重做undo表空间 场景: alert日志,报了如下错误: 原因 The following error is occurring in the alert.log right before the database crashes. ORA 00600: internal error code, ...
分类:
数据库 时间:
2019-10-23 11:35:52
阅读次数:
105
题目链接:传送门 思路: 题意说用线段的相交作为边,来构造树,所以不存在大于等于3个的线段两两相交,否则会构成环。因而构造出的树中,每个点最多只会与2个度大于1的节点相邻。 不妨把1设为树根,用degu表示原树中节点u的度,ans表示答案。 用fu表示:假设以u为根的子树,已经有一条边连向了一个度大 ...
分类:
其他好文 时间:
2019-10-19 09:54:39
阅读次数:
84
题意是在一个装着单词的数组里面,找出两个互相之间没有重复字母的单词(某一个单词自身可以有重复字母,比如foo, test)比如A和B好了,算出A.length() * B.length()的最大值。 思路是用bitmap。可以参考这个帖子,https://leetcode.com/problems/ ...
分类:
其他好文 时间:
2019-10-17 00:56:48
阅读次数:
102
Balanced strings are those who have equal quantity of 'L' and 'R' characters. Given a balanced string s split it in the maximum amount of balanced str ...
分类:
其他好文 时间:
2019-10-16 16:22:50
阅读次数:
85
题目如下: Given an array nums of positive integers, return the longest possible length of an array prefix of nums, such that it is possible to remove exac ...
分类:
其他好文 时间:
2019-10-16 11:43:10
阅读次数:
119
来源:力扣(LeetCode) 链接:https://leetcode cn.com/problems/maximum subarray 给定一个整数数组 nums?,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 示例: 输入: [ 2,1, 3,4, 1,2,1, 5, ...
分类:
其他好文 时间:
2019-10-16 09:51:55
阅读次数:
103
题目描述 Bessie is running out of money and is searching for jobs. Farmer John knows this and wants the cows to travel around so he has imposed a rule tha ...
分类:
其他好文 时间:
2019-10-16 00:21:10
阅读次数:
78
# 四大基本原则(CRAP)## 亲密性(Proximity)元素分类放在一起。## 对齐(Alignment)对齐分为:左对齐、右对齐、居中对齐、两端对齐、慎用居中对齐,居中对齐的 “对齐线” 强度弱,没有力度。## 重复(Repetition)对首尾运用重复可以很好地收尾,让读者读到尾部视线停留... ...
分类:
其他好文 时间:
2019-10-14 22:21:29
阅读次数:
128