Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest le ...
分类:
其他好文 时间:
2018-11-10 10:51:42
阅读次数:
147
C - Maximum Subrectangle 因为是两个数组相乘的到的 矩阵所以 a(i ->j)*b(x->y) 的面积 就是 a(i ->j) 的和乘与b(x->y)的和 所以我们枚举 a 序列 从1-n的长度和 B序列同理 然后 枚举两个序列和相乘 找一个最大即可 D - Social C ...
分类:
其他好文 时间:
2018-11-09 22:03:27
阅读次数:
207
题意:给一个数列和m,在数列任选若干个数,使得他们的和对m取模后最大。 注意到n<=35,直接枚举状态不行,考虑meeting in the middle。 那么的话我们直接暴力枚举两边的状态就好了,不过我们记录的是取模后的sum。。 现在主要解决合并答案的问题。都是套路是吧。。。 我们容易发现,如 ...
分类:
其他好文 时间:
2018-11-08 12:14:59
阅读次数:
199
Reports Summary report:运行获取的性能总结性报告。 一、Statistics Summary: 1.Maximum Running Vusers:用的最多的虚拟用户数。 2.Total Throughput(bytes):总的吞吐量是多少个字节。从服务器端响应给客户端的流量大小 ...
分类:
其他好文 时间:
2018-11-07 14:11:21
阅读次数:
269
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device ...
分类:
移动开发 时间:
2018-11-07 00:46:35
阅读次数:
183
题目描述给定一棵 N 个节点的树,每个节点有一个正整数权值。记节点 i 的权值为 Ai。考虑节点 u 和 v 之间的一条简单路径,记 dist(u, v) 为其长度,gcd(u, v) 为路径上所有节点(包含 u 和 v)的权值的最大公因子。min(u, v) 为路径上所有节点的权值的最小值。请求出 ...
分类:
其他好文 时间:
2018-11-06 16:45:45
阅读次数:
226
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 查找最长的回文子串,这道 ...
分类:
其他好文 时间:
2018-11-06 00:54:27
阅读次数:
110
Given a list of strings, you need to find the longest uncommon subsequence among them. The longest uncommon subsequence is defined as the longest subs ...
分类:
其他好文 时间:
2018-11-05 21:29:47
阅读次数:
207
在这个里面主要有这几个属性: 1.width - viewport的宽度 2.height - viewport的高度 3.initial-scale - 初始的缩放比例 4.minimum-scale - 允许用户缩放到的最小比例 5.maximum-scale - 允许用户缩放到的最大比例 6. ...
分类:
其他好文 时间:
2018-11-05 10:10:33
阅读次数:
165
今天依然记录一下,学习情况,可以看到自己每一天都在进步。 ...
分类:
编程语言 时间:
2018-11-04 23:05:35
阅读次数:
302