Geek

PM Lee Releases His Inner Geek With A C++ Sudoku Solver We All Can Play With

This article originally appeared on Vulcan Post

If you’ve ever doubted Singapore’s Prime Minister Lee Hsien Loong’s ability to code, he has just released a personally-coded Sudoku Solver to his Facebook fans for all to see.

Sharing a link to a Google Drive folder, he shared the source code, exe file, and sample printout, so that fellow Singaporean developers will be able to check out the Prime Minister’s work firsthand. PM Lee even calls for the Singaporean developer’s community to check his work, and “tell (him) if there are any bugs”.

I told the Founders Forum two weeks ago that the last computer program I wrote was a Sudoku solver, written in C++…

Posted by Lee Hsien Loong on Monday, 4 May 2015

The C++ Sudoku solver is a pretty simple program: You just have to type in the data in the Sudoku puzzle line by line, and the solver will instantaneously generate a solution.

He also ends the post with #SmartNation, a continuation of his call for technology engineers and developers to step up and make creative solutions for Singapore’s problems. As he said at the Smart Nation Launch in November last year:

“I think that we must get our children in schools exposed to IT, exposed to programming… I think we must expose our kids and we must enable the most talented and interested ones to be able to go far and develop their talent in IT in schools and pursue that, whether in university, whether after that, to set up a start-up or to join a company, or work with the Government and make a Smart Nation.”

[UPDATE]: Let us know if it works for you! The Vulcan Post team has tried to play with it, but it crashed each time. 

 

Subscribe to Vulcan Post Newsletter

Stay updated with our weekly curated news and updates.