Commit 3169178
committed
Add Sudoku Solver using Backtracking algorithm - Implements depth-first backtracking to solve 9×9 Sudoku puzzles - Includes validation for rows, columns, and 3×3 subgrids - Provides clean, modular implementation with helper methods - Includes comprehensive unit tests for solvable and unsolvable cases - Time Complexity: O(9^(n²)) in worst case - Space Complexity: O(n²) for recursion stack
1 parent 00a3b29 commit 3169178
File tree
1 file changed
+5
-3
lines changed- src/test/java/com/thealgorithms/backtracking
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments