Programming Stuff

The Blog

Dictionary ContainsKey() vs TryGetValue()

Using TryGetValue() to check if a key exists or not in a dictionary can improve performance of your application. Check the fallow example, MyClass, where we required to create one instance for id/key: (Factory Pattern)

May the way you […]

Sodoku is NP-Complete

One of the most famous puzzle today is SoDoku. It is apparently simple but is really hard and categorize as NP-Complete Problem and there are researches that prove it by demonstrating that it is NP and NP-Hard. http://sed.free.fr/complex/sudoku.html http://www.websudoku.com/ http://www.seccperu.org/node/645 […]