码迷,mamicode.com
首页 >  
搜索关键字:search a 2d matrix i    ( 16402个结果
Programming Assignment 4: 8 Puzzle
The Problem. 求解8数码问题。用最少的移动次数能使8数码还原. Best-first search.使用A*算法来解决,我们定义一个Seach Node,它是当前搜索局面的一种状态,记录了从初始到达当前状态的移动次数和上一个状态。初始化时候,当前状态移动次数为0,上一个状态为null,将...
分类:其他好文   时间:2014-07-16 21:29:13    阅读次数:187
Javascript获取地址栏参数值
采用正则表达式获取地址栏参数:function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).m...
分类:编程语言   时间:2014-07-16 20:11:22    阅读次数:208
leetcode题解:Search for a Range (已排序数组范围查找)
题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ...
分类:其他好文   时间:2014-07-16 19:48:18    阅读次数:263
poj 2309 BST(数学题)
BSTTime Limit:1000MSMemory Limit:65536KTotal Submissions:8440Accepted:5093DescriptionConsider an infinite full binary search tree (see the figure belo...
分类:其他好文   时间:2014-07-13 11:22:45    阅读次数:251
C语言 解决迷宫问题练习
利用C语言来解决类似迷宫的问题,下面例子分别用两种方法来解决![Problem]There is a maze as shown in the diagram below. In the maze in the form of a 100*100 matrix, the white backgrou...
分类:编程语言   时间:2014-07-13 10:07:16    阅读次数:285
Docker常用命令
Docker常用命令目录搜索镜像获取容器镜像创建实例查看容器列表创建镜像移除一个或多个容器实例删除镜像搜索镜像从Docker Hub搜索镜像. COMAND: $ sudo docker search TERM OPTIONS: --automated=false 是否仅显示自动...
分类:其他好文   时间:2014-07-13 08:05:10    阅读次数:297
ACdream: Sum
Sum Time Limit: 2000/1000MS (Java/Others)Memory Limit: 128000/64000KB (Java/Others) SubmitStatisticNext Problem Problem Description You are given an N*N digit matrix and you can get seve...
分类:其他好文   时间:2014-07-12 22:17:10    阅读次数:236
ACdream原创群赛(16) J
Sum Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) SubmitStatus Problem Description You are given an N*N digit matrix and you can get several horizontal o...
分类:其他好文   时间:2014-07-12 21:17:15    阅读次数:182
ACdream 1139(Sum-逆元)
J - Sum Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) SubmitStatus Problem Description You are given an N*N digit matrix and you can get several horizont...
分类:其他好文   时间:2014-07-12 20:26:54    阅读次数:269
poj 2155 二维树状数组
http://poj.org/problem?id=2155MatrixTime Limit:3000MSMemory Limit:65536KTotal Submissions:17721Accepted:6653DescriptionGiven an N*N matrix A, whose el...
分类:其他好文   时间:2014-07-12 15:09:54    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!