Ask HN: Where can I find coding puzzles that require “out of the box” thinking?
Such as 9-dots puzzle, but for programming.
Possibly something that would be to coding/math what "What if?" by xkcd is to physics - crazy questions with extremely unexpected solutions.
If you know about books/websites that collect these puzzles, or you know some good examples yourself - please share them.
If you have any ideas on how I could learn to invent these puzzles myself, or maybe some programming projects that could be a source for a lot of such challenges - please share them too, that would be extremely valuable as well.
P.S. Ideally these puzzles would be small and simple enough to be solvable by a beginner/intermediate programmer, although that is not a strict requirement, more advanced examples are very welcome too.
EDIT: To be clear, these puzzles are for me. To train my brain and have fun and get better at hacking. Not to test or train other people. Well, maybe also to list them on my blog, if I manage to gather a cool collection.
12 comments
[ 3.6 ms ] story [ 28.3 ms ] threadhttp://www.topcoder.com/
It will require tracing a lot of lines all around the box that's the scope of the task you chosen.
Spot the bug in a given piece of code. Find the problem by looking at the patch. Switch from source to binary if that is too easy.
Or look into reversing. If that gets boring, try reversing some complicated malware.
So check out www.4clojure.com