cousin_it comments on What are you working on? December 2011 - Less Wrong

7 Post author: jsalvatier 13 December 2011 03:27PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (117)

You are viewing a single comment's thread. Show more comments above.

Comment author: cousin_it 25 December 2011 05:52:35PM *  1 point [-]

After you solve each Project Euler problem, you automatically get access to the forum thread where people compare their solutions to that problem. For example, I was happy to find Peter Norvig's impressively concise solution to #54.

Comment author: Kutta 30 December 2011 11:00:40PM *  0 points [-]

Do you have evidence besides the username and the programming skill that it's Norvig? I also entertained the idea that it's him. At first I didn't examine his code deeply, but its conciseness inspired me to create a 12-line semi-obfuscated Python solution. I posted a clarified version of that in the thread. What do you think about it? Also, could you tell me your Euler username so I could look for your solutions (provided that you actually post there)?

Now that you mentioned Norvig's solution I investigated it and after correcting some typos I got it to run on my PC. I concluded that it works pretty much the same way as my solution (but mine's considerably faster :) ).

Comment author: cousin_it 01 January 2012 10:30:16AM *  0 points [-]

Do you have evidence besides the username and the programming skill that it's Norvig?

Yes, I have exchanged emails with Norvig about it. But it didn't even occur to me to doubt his authorship, because the style is so similar to his Sudoku solver.

Also, could you tell me your Euler username so I could look for your solutions (provided that you actually post there)?

My username is cousin_it but I never post there.

At first I didn't examine his code deeply, but its conciseness inspired me to create a 12-line semi-obfuscated Python solution. I posted a clarified version of that in the thread.

Woah. If you enjoy crafting your code into such puzzles, check out call/cc in any language that supports it, e.g. Ruby which is really similar to Python. It will help you increase the amount of havoc per line :-)