Question Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left ...
分类:
其他好文 时间:
2019-09-16 10:10:50
阅读次数:
79
Dawn-K recently discovered a very magical phenomenon in the supermarket of Northeastern University: The large package is not necessarily more expensiv ...
分类:
其他好文 时间:
2019-09-14 22:56:29
阅读次数:
158
(题面还不能看,晚点加上题面) 思路: suma=(a1+a2+。。。+ak) sumf=(f1+f2+。。。+f3) ①n<=k,ans=a1+a2+。。。+an; ②n<=2k,ans=suma+f1+f2+。。。+f(n-k); ③n>2k,ans=suma+((n-k)/k)*sumf+( ...
分类:
移动开发 时间:
2019-09-14 19:30:50
阅读次数:
657
(题面还看不了,晚点加上题面) AC 代码: ...
分类:
其他好文 时间:
2019-09-14 18:55:07
阅读次数:
106
Question Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
分类:
移动开发 时间:
2019-09-14 00:19:04
阅读次数:
125
博客园markdown太烂, 题解详情 Leetcode Solution 11~20 marks: @: hard to get a direct solution %: need optimization 好题 %%% 11. Container With Most Water[Medium] ...
分类:
其他好文 时间:
2019-09-10 20:45:15
阅读次数:
94
原文链接:http://tecdat.cn/?p=6488 数据准备 ## mpg disp hp drat wt qsec ## Mazda RX4 21.0 160 110 3.90 2.62 16.5 ## Mazda RX4 Wag 21.0 160 110 3.90 2.88 17.0 # ...
分类:
编程语言 时间:
2019-09-10 17:50:43
阅读次数:
143
题目描述 Farmer John has been having trouble making his plants grow, and needs your help to water them properly. You are given the locations of N raindrop ...
分类:
其他好文 时间:
2019-09-09 22:52:36
阅读次数:
104
题目连接: https://leetcode-cn.com/problems/water-and-jug-problem/ 题目大意: 中文题 具体思路: ax + by = z 求是否有合理的解 ,x ,y 为系数化简 a * t1 * k + b * t2 * k == z;然后 k * (a ...
分类:
其他好文 时间:
2019-09-09 21:12:31
阅读次数:
103
Gabor变化属于加窗傅里叶变换,Gabor函数可以在频域不同尺度、不同方向上提取相关的特征。Gabor函数与人眼的生物作用相仿,所以经常用于纹理识别上,并取得了较好的效果。 二维Gobor滤波函数: ? 其中: xp = x*cos(theta)+y*sin(theta) yp=y*cos(the ...
分类:
其他好文 时间:
2019-08-29 22:57:29
阅读次数:
303