行列
文章平均质量分 82
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 52. N-Queens II(N皇后)
原题网址:https://leetcode.com/problems/n-queens-ii/ Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. 方法一:深度优先搜索,使用一原创 2016-05-21 06:27:12 · 943 阅读 · 0 评论 -
LeetCode 73. Set Matrix Zeroes(矩阵清零)
原题网址:https://leetcode.com/problems/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. click to show follow up. Follow up: Did原创 2016-05-22 05:18:55 · 702 阅读 · 0 评论 -
LeetCode 348. Design Tic-Tac-Toe(井字棋)
原题网址:https://leetcode.com/problems/design-tic-tac-toe/ Design a Tic-tac-toe game that is played between two players on a n x n grid. You may assume the following rules: A move is guaranteed原创 2016-05-18 09:30:28 · 4463 阅读 · 0 评论 -
LeetCode 51. N-Queens(N皇后)
原题网址:https://leetcode.com/problems/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, retu原创 2016-05-21 06:21:29 · 542 阅读 · 0 评论