Problem I just solved a problem from leetcode that is faster than 28.42% of the PHP codes, so the main […]
Tag: sudoku
How to make my backtraching sudoku solving algorithm in Python faster?
Problem I wrote a backtracking Sudoku solving algorithm in Python. It solves a 2D array like this (zero means “empty […]
Valid Sudoku in Swift
Problem This is my solution to LeetCode – Valid Sudoku in Swift. class Solution { func isValidSudoku(_ board: [[Character]]) -> […]
Sudoku solver in Ruby
Problem All the test cases pass except one of the test case which runs > 10 seconds. What can I […]
Haskell Sudoku Solver
Problem Any comments on the following Sudoku solver? Comments I’m particularly interested are (but not limited to…) Algorithm. It created […]
C backtracking Sudoku solver
Problem I wrote this program in C to solve a given Sudoku puzzle (represented as 2D array) using backtracking algorithm. […]
Sudoku solver in Haskell
Problem I tried to implement a naive brute-force Sudoku solver in Haskell (I know there are loads of good solutions […]
Haskell Sudoku solver using bactracking
Problem This solves Sudoku by using backtracking. Accepts one grid where 0 represents a missing number. Here are some examples: […]
Ruby sudoku solver using backtracking (interview)
Problem I was required to implement the code to a spec file I was provided in Ruby. I was rejected […]
Sudoku Solver To SAT implementation
Problem I implemented an algorithm for solving sudoku using reduction from sudoku to SAT. Now, I am trying to refactor […]