Skip to content

Commit 2a89b97

Browse files
committed
update
1 parent 87674f3 commit 2a89b97

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Time: ((9!) ^ 9)
2-
# Space: (9 ^ 2)
1+
# Time: ((9!)^9)
2+
# Space: (1)
33
#
44
# Write a program to solve a Sudoku puzzle by filling the empty cells.
55
#
@@ -55,4 +55,4 @@ def isValid(self, board, x, y):
5555
['.', '6', '.', '.', '.', '.', '2', '8', '.'],
5656
['.', '.', '.', '4', '1', '9', '.', '.', '5'],
5757
['.', '.', '.', '.', '8', '.', '.', '7', '9']]
58-
print Solution().solveSudoku(board)
58+
print Solution().solveSudoku(board)

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ Problem | Solution | Time | Space | Difficul
456456
[Path Sum] | [path-sum.py] | _O(n)_ | _O(logn)_ | Easy |
457457
[Path Sum II] | [path-sum-ii.py] | _O(n)_ | _O(logn)_ | Medium |
458458
[Restore IP Addresses] | [restore-ip-addresses.py] | _O(n^m)_ ~ _O(3^4)_ | _O(n * m)_ ~ _O(3 * 4)_ | Medium |
459+
[Sudoku Solver] | [sudoku-solver.py] | _O((9!)^9)_ | _O(1)_ | Hard |
459460

460461
[Balanced Binary Tree]:https://oj.leetcode.com/problems/balanced-binary-tree/
461462
[balanced-binary-tree.py]:https://github.com/kamyu104/LeetCode/blob/master/Python/balanced-binary-tree.py
@@ -481,6 +482,8 @@ Problem | Solution | Time | Space | Difficul
481482
[path-sum-ii.py]:https://github.com/kamyu104/LeetCode/blob/master/Python/path-sum-ii.py
482483
[Restore IP Addresses]:https://oj.leetcode.com/problems/restore-ip-addresses/
483484
[restore-ip-addresses.py]:https://github.com/kamyu104/LeetCode/blob/master/Python/restore-ip-addresses.py
485+
[Sudoku Solver]:https://oj.leetcode.com/problems/sudoku-solver/
486+
[sudoku-solver.py]:https://github.com/kamyu104/LeetCode/blob/master/Python/sudoku-solver.py
484487
---
485488

486489
##Dynamic Programming

0 commit comments

Comments
 (0)