1. 二维数组转置void matrix_transpose(int *src[], int
*dst[], int x, int y){ int i, j; int *psrc, *pdst; i = j = 0; psrc = (int
*)src; pdst = (int *)dst; for...
分类:
其他好文 时间:
2014-06-11 13:29:59
阅读次数:
303
Participate in Reproducible ResearchGeneral
Image ProcessingOpenCV(C/C++ code, BSD lic) Image manipulation, matrix
manipulation, transformsTorch3Visio...
分类:
其他好文 时间:
2014-06-11 10:57:06
阅读次数:
444
修改环境变量:process.env.NODE_TLS_REJECT_UNAUTHORIZED =
"0"
分类:
Web程序 时间:
2014-06-11 09:48:30
阅读次数:
1000
原题地址:https://oj.leetcode.com/problems/rotate-image/题意:You
are given annxn2D matrix representing an image.Rotate the image by 90 degrees
(clockwise).Fo...
分类:
编程语言 时间:
2014-06-11 09:43:59
阅读次数:
1264
题目
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
方法
使用两个矩阵,分别记录每一行连续的1的个数以及每一列连续的1的个数。
public int maximalRec...
分类:
其他好文 时间:
2014-06-11 00:24:51
阅读次数:
343
DescriptionConsider a group of N students and P
courses. Each student visits zero, one or more than one courses. Your task is to
determine whether it ...
分类:
其他好文 时间:
2014-06-09 15:36:50
阅读次数:
239
在做ACM 1002题时,整理得到。#include#include#define MAX
1000void zero(char *s,int len){ int i; for(i=0;i20) ; for(i=0;iblen?alen:blen;
for(j=0;j=0)&&(j>=0);j--....
分类:
编程语言 时间:
2014-06-09 14:10:01
阅读次数:
328
这部分 cover 两个比较特殊的情形,一个是 Gaussian networks,一个是
exponential family。正态分布常见的参数化策略是均值 和协方差矩阵 ,另一种是使用 information matrix/precision
matrix,即 ,另可以用所谓 potenti....
分类:
其他好文 时间:
2014-06-08 23:10:53
阅读次数:
296
Spiral MatrixGiven a matrix of m x n elements
(m rows, n columns), return all elements of the matrix in spiral order.For
example, Given the following ...
分类:
其他好文 时间:
2014-06-07 22:57:31
阅读次数:
236
You are given an n x n 2D matrix representing
an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this
in-place?实现题。从最外圈顺时针交换,最...
分类:
其他好文 时间:
2014-06-07 20:33:17
阅读次数:
283