661. Image Smoother【easy】 Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of ...
分类:
其他好文 时间:
2017-09-18 00:22:31
阅读次数:
248
系统:Ubuntu16.04+ROS-Kinetic ROS-Kinetic的安装请参考http://www.cnblogs.com/liu-fa/p/5779206.html 新建一个ros工作空间(如果有就不用了),参考http://www.cnblogs.com/huangjianxin/p/ ...
分类:
其他好文 时间:
2017-09-17 22:05:29
阅读次数:
192
Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the ave ...
分类:
其他好文 时间:
2017-09-17 15:16:57
阅读次数:
206
不说废话了,直接贴题 题意: 样例: 1.建立模型 这个题如果直接来解决的话,可能有很大的难度,所以,我们必须先建立模型。 首先我们来看一个题,是LeetCode上: 题意: Given n non-negative integers representing the histogram's bar ...
分类:
编程语言 时间:
2017-09-16 11:46:18
阅读次数:
204
题目链接:https://cn.vjudge.net/problem/UVA-11651 解题思路: 思路来源于网络。 DP + 矩阵快速幂。 设 dp[i][j] 为满足 score 为 i 且最后一位为 j 的数字的个数。则不难推出其状态转移方程:dp[i][j] = Sum( dp[i-d][ ...
分类:
其他好文 时间:
2017-09-16 01:14:48
阅读次数:
258
原题链接在这里:https://leetcode.com/problems/image-smoother/description/ 题目: Given a 2D integer matrix M representing the gray scale of an image, you need to ...
分类:
其他好文 时间:
2017-09-15 10:01:43
阅读次数:
192
这道题我们发现0就代表相同1代表少1或者大1 那么我们根据题目连边 如果存在1(边权只为或0)个数为奇数的环就是无解 #include<cstdio> #include<cstring> #include<algorithm> const int M=1e6+7; int read(){ int a ...
分类:
其他好文 时间:
2017-09-14 20:19:05
阅读次数:
197
1. 用jquery的css方法获取transform得到的是矩阵matrix,不利于获取translate的值, 优先使用dom.style.webKitTransform进行transform的读写 2. 从transform中读取translate的值方法 ...
分类:
其他好文 时间:
2017-09-14 16:40:41
阅读次数:
159
原题链接在这里:https://leetcode.com/problems/range-addition-ii/description/ 题目: Given an m * n matrix M initialized with all 0's and several update operation ...
分类:
其他好文 时间:
2017-09-14 10:50:19
阅读次数:
165
·1、协方差与散布矩阵的意义 【尊重原创,转载请注明出处】http://blog.csdn.net/guyuealian/article/details/68922981 1)散布矩阵(散度矩阵/scatter matrix)前乘以系数1/(n-1)就可以得到协方差矩阵了,样本的协方差矩阵乘以n-1 ...
分类:
其他好文 时间:
2017-09-13 17:13:40
阅读次数:
133