It’s not often that one sees a tech savvy political leader; however, Singaporean Prime Minister Lee Hsien Loong has proven to be the exception to the rule. Lee has posted a screenshot of the code for a Sudoku solver he coded to his public Facebook page, as well as a link to the actual code for download.
The story began during a speech Lee gave at the Founders Forum Smart Nation Singapore Reception on 20 April earlier this year. The Prime Minister recounted how the last programme that he made was written in C++, and pointed out just how out of date he is with modern programming methods. Requests to see the code soon flooded in, and PM Lee has delivered.
Lee admits that the code “is pretty basic: it runs at the command prompt, in a DOS window”. That being said, it is quite unusual to see a world leader posting the source code to a programme he wrote himself.
The code can be downloaded from a Google Drive folder created by Lee. As far as going to promote programming skills among the youth, this is probably a lot more effective than campaigns in every other country. It is also substantially cheaper too.