Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Solve a hard Sudoku problem using R
# -----------------------------
# SUDOKU
# -----------------------------
# Solve a Sudoku problem in seconds
# create a text file under c:\ drive called "hard sudoku problem.txt" with following text (without # symbol) and then run the code below
#85---24--
#72------9
#--4------
#---1-7--2
#3-5---9--
#-4-------
#----8--7-
#-17------
#----36-4-
install.packaged("sudoku")
library(sudoku)
s <- readSudoku("c:/hard sudoku problem.txt")
s
solveSudoku(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.