码迷,mamicode.com
首页 >  
搜索关键字:katu puzzle    ( 693个结果
leetcode第36题--Sudoku Solver
题目:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be...
分类:其他好文   时间:2014-10-25 00:46:35    阅读次数:227
HDU1098 Ignatius's puzzle 【数论】
Ignatius's puzzle Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6559    Accepted Submission(s): 4540 Problem Description Ignatius...
分类:其他好文   时间:2014-10-22 07:37:25    阅读次数:171
poj - 1651 - Multiplication Puzzle(dp)
题意:n个数(3 题目链接:http://poj.org/problem?id=1651 ——>>状态:dp[i][j]表示第i个数到第j个数组成的序列的最小权值和。 状态转移方程:dp[i][j] = min(dp[i][j], dp[i][k] + dp[k][j] + a[i] * a[k] * a[j]);(枚举最后一个拿掉的数来更新) 时间复杂度:O(n ^ 3) #incl...
分类:其他好文   时间:2014-10-21 12:22:37    阅读次数:147
ZOJ 2610 Puzzle 模拟
大模拟:枚举6个方向,检查每个0能否移动 Puzzle Time Limit: 2 Seconds      Memory Limit: 65536 KB Little Georgie likes puzzles very much. Recently he has found a wooden triangle in the box with old toys. The...
分类:其他好文   时间:2014-10-18 18:25:06    阅读次数:311
[Leetcode] N-Queens
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:其他好文   时间:2014-10-18 07:33:43    阅读次数:263
【原创】一个基于简单剪枝的DFS解数独程序
问题来源:leetCode Sudoku SolverWrite a program to solve aSudoku puzzle by filling the empty cells.Empty cells are indicated by the character *.*.You may a...
分类:其他好文   时间:2014-10-15 18:52:21    阅读次数:216
LeetCode :Sudoku Solver
Sudoku Solver  Total Accepted: 13937 Total Submissions: 66832My Submissions Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character...
分类:其他好文   时间:2014-10-14 00:40:37    阅读次数:246
[LeetCode]N-Queens 八皇后问题扩展(经典深搜)
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle...
分类:其他好文   时间:2014-10-12 16:58:58    阅读次数:248
【LeetCode】N-Queens
N-QueensThen-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all...
分类:其他好文   时间:2014-10-12 15:11:58    阅读次数:263
Sudoku Solver
[leetcode]Write a program to solve a Sudoku puzzle by filling the empty cells....
分类:其他好文   时间:2014-10-10 15:52:10    阅读次数:188
693条   上一页 1 ... 56 57 58 59 60 ... 70 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!