Solving Sudoku's with R and C++
summary
Implements a 9x9 Sudoku solver with greedy elimination plus backtracking that chooses the cell with the fewest candidates, first written in R then recompiled critical inner loops with C++ via Rcpp. Profiling with profvis shows removal of nonstandard pipes and zeallot yields a 7× microbenchmark speed-up; porting to C++ drops solve time from ~5000 ms to ~700 ms (about 44× faster) and turns a minute-scale hard puzzle into a subsecond solve.
AI-written summary · about
