码迷,mamicode.com
首页 >  
搜索关键字:hdoj matrix    ( 6780个结果
NENU ACM 2014-05-18 A题 && NENU 1081 Lucky
A -LuckyTime Limit:1000MSMemory Limit:131072KB64bit IO Format:%lld & %lluSubmitStatusPracticeNENU 1081Description We say a n*m matrix r is lucky if...
分类:其他好文   时间:2014-05-23 09:01:25    阅读次数:304
Leetcode: Search a 2D Matrix
这道题本来思路并不复杂,先对第一列做binary search, 找到target所在的行,再对所在的行做binary search,找到target在或不在。但是我在编程的时候遇到了很多问题,堆栈溢出(StackOverflowError)折腾死我了,一些边界条件的考虑也颇费周折。我之所以会碰到堆...
分类:其他好文   时间:2014-05-23 08:35:31    阅读次数:294
Leetcode: Set Matrix Zeroes
一次过,空间复杂度为O(m+n), 下一次做的时候寻找constant space solution。用boolean array也可以,用bit vector可能会更节省 1 import java.util.*; 2 3 public class Solution { 4 public...
分类:其他好文   时间:2014-05-23 08:30:28    阅读次数:278
HDOJ 4006 The kth great number
The kth great number Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 6240    Accepted Submission(s): 2532 Problem Description Xiao ...
分类:其他好文   时间:2014-05-23 08:16:40    阅读次数:272
最大匹配-标准-hdoj-2063
标准的二部图最大匹配。...
分类:其他好文   时间:2014-05-23 07:44:39    阅读次数:189
POJ 2329 (暴力+搜索bfs)
Nearest number - 2 Description Input is the matrix A of N by N non-negative integers....
分类:其他好文   时间:2014-05-22 09:38:33    阅读次数:236
魔咒词典------HDOJ杭电1880(字符串的处理,很简单)
Problem Description 哈利波特在魔法学校的必修课之一就是学习魔咒。据说魔法世界有100000种不同的魔咒,哈利很难全部记住,但是为了对抗强敌,他必须在危急时刻能够调用任何一个需要的魔咒,所以他需要你的帮助。 给你一部魔咒词典。当哈利听到一个魔咒时,你的程序必须告诉他那个魔咒的功能;当哈利需要某个功能但不知道该用什么魔咒时,你的程序要替他找到相应的魔咒。如果他要的魔咒不...
分类:其他好文   时间:2014-05-22 08:08:01    阅读次数:279
Matlab编程基础
原文:Matlab编程基础平台:Win7 64 bit,Matlab R2014a(8.3) “Matlab”是“Matrix Laboratory” 的缩写,中文“矩阵实验室”,是强大的数学工具。本文侧重于Matlab的编程语言侧面,讲述Matlab的基本语法,以及用Matlab语言进行程序设计。...
分类:其他好文   时间:2014-05-22 00:17:34    阅读次数:642
leetCode解题报告5道题(九)
5道题目分别是:【Combinations】、【Search a 2D Matrix】、【Scramble String 】、【Rotate List 】、【Partition List】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录。...
分类:其他好文   时间:2014-05-20 15:36:16    阅读次数:293
Big Number------HDOJ杭电1212(大数运算)
Problem Description As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B. To make the problem easie...
分类:其他好文   时间:2014-05-20 14:42:07    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!