Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login
Interactive coding puzzles by Microsoft Research (www.pexforfun.com) similar stories update story
6 points by amichail | karma 14132 | avg karma 2.47 2010-08-05 21:48:00 | hide | past | favorite | 4 comments



view as:

Cool. Would be awesome to have something like this for other languages.

Hm, this is pretty cool. I really like how this generates test cases by code inspection.

However, some of the puzzles are really obscure. For example, Im talking about that one which has an int x as parameter, which has tests like 0 -> 0, 1 -> 0 and 769 -> some really arbitrary number. Those are just not fun.


Those are the ones I'm enjoying the most - usually I get a larger value as the parameter in the first or second run, and I can make some sort of connection between the parameter and the result to refine my function accordingly. (It's rather hard to get the right function out of 2->6, which was the first run for my first test, but once I got 789->310866 I was able to get the right answer after only two more tests).

Legal | privacy