摘要: 原题地址:https://oj.leetcode.com/problems/sudoku-solver/题意:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated b... 阅读全文
posted @ 2014-06-05 14:26 南郭子綦 阅读(4017) 评论(3) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/valid-sudoku/题意:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could b... 阅读全文
posted @ 2014-06-05 13:44 南郭子綦 阅读(4111) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/search-a-2d-matrix/题意:Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the... 阅读全文
posted @ 2014-06-05 12:11 南郭子綦 阅读(2910) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/anagrams/题意:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be i... 阅读全文
posted @ 2014-06-05 11:39 南郭子綦 阅读(5011) 评论(3) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/spiral-matrix-ii/题意:Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.... 阅读全文
posted @ 2014-06-05 11:06 南郭子綦 阅读(2145) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/spiral-matrix/题意:Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral orde... 阅读全文
posted @ 2014-06-05 10:46 南郭子綦 阅读(4186) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/word-search/题意:Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from... 阅读全文
posted @ 2014-06-05 10:23 南郭子綦 阅读(5498) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/merge-sorted-array/题意:Given two sorted integer arrays A and B, merge B into A as one sorted array.解题思路:归并排序的归并这一... 阅读全文
posted @ 2014-06-05 09:58 南郭子綦 阅读(4099) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/set-matrix-zeroes/题意:Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.解题... 阅读全文
posted @ 2014-06-05 09:53 南郭子綦 阅读(2779) 评论(0) 推荐(0) 编辑