Given a matrix, get the number of path from the top left cell to the top right cell. Note that: you can only go right, up right, down right. (0,0) (0, ...
分类:
其他好文 时间:
2018-10-04 08:46:01
阅读次数:
126
A. Maximal Binary Matrix 解法:暴力模拟+贪心 #include<bits/stdc++.h> using namespace std; int a[110][110]; int main(){ int n,k,cmp,f=0;scanf("%d%d",&n,&k); if( ...
分类:
其他好文 时间:
2018-10-01 21:38:20
阅读次数:
175
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means t ...
分类:
其他好文 时间:
2018-10-01 11:52:01
阅读次数:
141
SURF原理详解:https://wenku.baidu.com/view/2f1e4d8ef705cc1754270945.html SURF算法工作原理 选择图像中的POI(Points of interest) Hessian Matrix 在不同的尺度空间发现关键点,非最大信号压制 发现特征 ...
分类:
其他好文 时间:
2018-09-30 12:57:26
阅读次数:
177
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 ...
分类:
编程语言 时间:
2018-09-30 00:54:22
阅读次数:
170
之前对坐标系的变换背后的数学原理感到不解,花时间研究下,发现只是简单的矩阵变换。 数学推导 $$ \left[ \begin{matrix} v1 & v2 & v3 \end{matrix} \right] \tag{V} $$ $$ \left[ \begin{matrix} u1 & u2 & ...
分类:
其他好文 时间:
2018-09-28 21:21:05
阅读次数:
172
一、题目 1、审题 2、分析 给出三个字符串,判断 s3 是否可以由 s1 与 s2中的字符交错形成。 二、解答 1、思路: 采用一个动态布尔型二维数组 matrix 记录匹配情况。matrix[0][0] 初值为 true。 ①、先初始化 matrix 第一行、第一列。 ②、matrix[i][j ...
分类:
其他好文 时间:
2018-09-26 23:54:40
阅读次数:
146
Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column ind ...
分类:
编程语言 时间:
2018-09-25 12:43:58
阅读次数:
121
54. Spiral Matrix [Medium] Description Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Exampl ...
分类:
其他好文 时间:
2018-09-24 00:51:47
阅读次数:
132
Given two sparse matrices A and B, return the result of AB. You may assume that A's column number is equal to B's row number. Example: 给2个稀疏矩阵,返回矩阵相乘的 ...
分类:
其他好文 时间:
2018-09-23 18:23:15
阅读次数:
206