-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sudoku solver #1417
Sudoku solver #1417
Conversation
import java.util.Scanner; | ||
class Sudoku_Solver | ||
{ | ||
public static boolean CanPlace(int[][] mat, int n, int i, int j, int num) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plz add comments above each func, denoting what it does.
Code/Java/Sudoku_Solver.java
Outdated
No Solution! | ||
|
||
TIME COMPLEXITY: O(9^(n*n)), as there will be 9 options from 1 to 9 to fill in an empty cell | ||
SPACE COMPLEXITY: O(n*n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify n
Okay, I've updated the changes as suggested. Kindly have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼
Added code for Sudoku Solver in Java for issue #42
Kindly review it.