码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
[ACM] POJ 3740 Easy Finding (DFS)
Easy Finding Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 16482   Accepted: 4476 Description Given a M×N matrix A. Aij ∈ {0, 1} (0 ≤ i < M, 0 ≤ j < N), co...
分类:其他好文   时间:2015-01-14 11:08:52    阅读次数:189
【Leetcode】Spiral Matrix 一 和 二 in JAVA
首先是1: Given 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 matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8,...
分类:编程语言   时间:2015-01-14 09:52:48    阅读次数:161
LeetCode--Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use extra space? A straight forward solution using O(m...
分类:其他好文   时间:2015-01-13 10:39:06    阅读次数:156
LeetCode--Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right.The first integer of each...
分类:其他好文   时间:2015-01-13 09:00:00    阅读次数:104
LeetCode--Spiral Matrix
Given 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 matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] ...
分类:其他好文   时间:2015-01-12 14:45:45    阅读次数:166
LeetCode--Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [...
分类:其他好文   时间:2015-01-12 14:42:40    阅读次数:222
LeetCode--Rotate Image
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? 先转置class Solution { public: void rotate(vector...
分类:其他好文   时间:2015-01-12 10:57:18    阅读次数:137
matrix_2015_1 138 - ZOJ Monthly, January 2015
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3844第一个,n个数,每次操作最大数和最小数都变成他们的差值,最后n个数相同时输出此时的值,暴力跑。 1 #include 2 int main(){ 3 int t,...
分类:其他好文   时间:2015-01-12 00:08:09    阅读次数:238
[LeetCode] Unique Paths && Unique Paths II && Minimum Path Sum (动态规划之 Matrix DP )
Unique Paths https://oj.leetcode.com/problems/unique-paths/ A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram b...
分类:其他好文   时间:2015-01-11 21:30:24    阅读次数:319
Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?我直接开了一个大小相同的数组resul...
分类:其他好文   时间:2015-01-11 14:50:19    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!