Skip to content

Instantly share code, notes, and snippets.

View mavharsha's full-sized avatar
🌵
procrastinating life

Sree Harsha M mavharsha

🌵
procrastinating life
View GitHub Profile
@mavharsha
mavharsha / sudoku_validator.js
Last active August 17, 2018 16:30
Check if the 9*9 Matrix grid is valid sudoku solution.
const validGrid = [[8,3,5,4,1,6,9,2,7],
[2,9,6,8,5,7,4,3,1],
[4,1,7,2,9,3,6,5,8],
[5,6,9,1,3,4,7,8,2],
[1,2,3,6,7,8,5,4,9],
[7,4,8,5,2,9,1,6,3],
[6,5,2,7,8,1,3,9,4],
[9,8,1,3,4,5,2,7,6],
[3,7,4,9,6,2,8,1,5]];