Prime Minister of Singapore wrote a program to solve Sudoku online
The Prime Minister of Singapore, Li Hsien Loong, posted on his Facebook profile the code of a program he wrote to solve Sudoku. The program is written in C ++ and takes as input line by line the initial condition of the Sudoku puzzle and then outputs one or more solutions.
Two weeks ago, at an event to celebrate the launch of a state technology initiative, Lee mentioned that he wrote his last program a few years ago. In his commentary on the post, the Prime Minister describes how the program works, and also asks his readers a question about what one of the fragments of his code does.