码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
[HDU] Tr A
没想到我已经沦落到刷HDU的水题来过日子了。 include include include include include using namespace std; const int N = 15,Mod = 9973; int n,k; struct matrix{ int M[N][N]; ...
分类:其他好文   时间:2017-12-09 11:01:26    阅读次数:162
Print an NxM matrix with nw-se diagonals
Print an NxM matrix with nw-se diagonals starting at bottom left corner. Ex: 1 2 3 4 5 6 7 8 9 10 11 12 The output should be: 9 5 10 1 6 11 2 7 12 3 8... ...
分类:其他好文   时间:2017-12-07 14:57:55    阅读次数:252
74. 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 f ...
分类:其他好文   时间:2017-12-07 00:02:43    阅读次数:129
73. 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. 给定一个m × n矩阵,如果一个元素为0,则将其整个行和列设置为0。 (1)思想1:用两个一维数组:flag_r ...
分类:其他好文   时间:2017-12-06 23:56:26    阅读次数:288
numpy array或matrix的交换两行
我们很容易想起python中的两个值交换一句搞定不用引入中间变量 但在numpy的array或matrix中,这样是错误的 需要使用选中两行来互换: 下面看一个实例: ...
分类:其他好文   时间:2017-12-05 22:38:53    阅读次数:277
IIS Express相关知识
一、概述 IIS Express is a lightweight, self-contained version of IIS optimized for developers. IIS Express makes it easy to use the most current version o ...
分类:其他好文   时间:2017-12-05 14:56:07    阅读次数:158
leetcode562- Longest Line of Consecutive One in Matrix- medium
Given a 01 matrix M, find the longest line of consecutive one in the matrix. The line could be horizontal, vertical, diagonal or anti-diagonal. Exampl ...
分类:其他好文   时间:2017-12-05 14:25:03    阅读次数:209
[poj] 3422 Kaka's Matrix Travels || 最小费用最大流
"原题" 给一个N N的方阵,从[1,1]到[n,n]走K次,走过每个方格加上上面的数,然后这个格上面的数变为0。求可取得的最大的值。 要求最大值,所以把边权全为负跑最小费用即可。因为只有第一次经过该点的时候会得到价值,所以我们将一个点拆为两个,连一条容量为1费用为负权的边和一条容量为k 1费用为0 ...
分类:其他好文   时间:2017-12-04 17:37:25    阅读次数:142
leetcode54- Spiral Matrix- medium
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: You s ...
分类:其他好文   时间:2017-12-04 11:47:32    阅读次数:144
Working out
Summer is coming! It's time for Iahub and Iahubina to work out, as they both want to look hot at the beach. The gym where they go is a matrix a with n ...
分类:其他好文   时间:2017-12-03 19:55:56    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!