Tag: golang

When in doubt … Use json-diff

When in doubt … Use json-diff

The original quote by the legendary Ken Thompson goes something like this“When in doubt use brute force.” One possible meaning that can be derived from this quote is that when you are trying to do something clever and you don’t know if/how it works – you need something very simple, core and brute-force to check if your clever solution works or…

Sudoku: A constraint satisfaction problem

Sudoku: A constraint satisfaction problem

You might be familiar with Sudoku. It is a logical puzzle appearing in the puzzles section of most newspapers. The newspaper is the first place where I encountered this puzzle while I was in school and it took me days to solve my first Sudoku puzzle. Later in college, I learned about Constraint Satisfaction Problems (CSP)…