Integer Inquiry poj1503 题目 Problem Description One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of power ...
分类:
其他好文 时间:
2021-01-27 13:01:44
阅读次数:
0
[题目链接] https://atcoder.jp/contests/arc093/tasks/arc093_c [题解] 一个重要的观察是 : 最多只会用一条不在忽略颜色求得的最小生成树上的边。 首先不妨求出最小生成树 , 并计算其权值 \(W\) , 令 \(\delta = X - W\)。 ...
分类:
其他好文 时间:
2021-01-26 12:00:48
阅读次数:
0
ansible实战:lamp 环境说明: 主机IP 需要安装的服务 192.168.100.1 ansible 192.168.100.2 httpd 192.168.100.3 mysql 192.168.100.4 php 项目结构预览: [root@ansible project]# tree ...
分类:
其他好文 时间:
2021-01-26 11:50:59
阅读次数:
0
思路分析 其实就是递归判断左树和右树,但是一些判断条件需要仔细思考下. cpp /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * ...
分类:
其他好文 时间:
2021-01-26 11:49:40
阅读次数:
0
原题链接 考察:二分图匹配+线性代数(?) 完全是参考大佬的思路: 根据线性代数的知识,如果矩阵的对角线全为1,说明该矩阵的秩是满的,而初等变换(交换行或者列)不改变矩阵的秩,因此行变换可由列变换代替,其实这道题感觉是在求矩阵的秩,行列变换同时进行会改变矩阵的秩,因此这道题只用行变换或者列变换即可 ...
分类:
其他好文 时间:
2021-01-25 11:35:38
阅读次数:
0
Problem LeetCode Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between ...
分类:
编程语言 时间:
2021-01-25 11:29:21
阅读次数:
0
Problem LeetCode Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: I ...
分类:
编程语言 时间:
2021-01-21 10:55:51
阅读次数:
0
/** * 栏目列表转成树结构 * * @param list * @return */private static List<SysDict> listToTree(List<SysDict> list,Long id) { if (list == null || list.isEmpty()) ...
分类:
其他好文 时间:
2021-01-21 10:46:05
阅读次数:
0
java集合 集合和数组是对多个数据进行存储操作的结构,简称java容器 数组初始化以后,其长度就确定了;数组一旦定义好,其元素的类型也就确定。 Collection接口 List接口 Vector ArrayList LinkedList Set接口 HashSet LinkedHashSet T ...
分类:
其他好文 时间:
2021-01-21 10:39:12
阅读次数:
0
617. 合并二叉树 给定两个二叉树,想象当你将它们中的一个覆盖到另一个上时,两个二叉树的一些节点便会重叠。 你需要将他们合并为一个新的二叉树。合并的规则是如果两个节点重叠,那么将他们的值相加作为节点合并后的新值,否则不为 NULL 的节点将直接作为新二叉树的节点。 示例 1: 输入: Tree 1 ...
分类:
其他好文 时间:
2021-01-18 11:42:52
阅读次数:
0