You're looking at Less Wrong's discussion board. This includes all posts, including those that haven't been promoted to the front page yet. For more information, see About Less Wrong.

Liron comments on Quixey Challenge - Fix a bug in 1 minute, win $100. Refer a winner, win $50. - Less Wrong Discussion

6 Post author: Liron 19 January 2012 07:39PM

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

Comments (51)

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

Comment author: Liron 20 January 2012 12:50:18AM 0 points [-]

We have a database of multiple "acceptably good solutions" to each problem.

Comment author: RolfAndreassen 20 January 2012 01:51:17AM 4 points [-]

It's clearly not big enough. :)

Comment author: Automaton 20 January 2012 09:53:36AM 2 points [-]

If you didn't put a colon between 0 and return, it's invalid syntax.

Comment author: RolfAndreassen 20 January 2012 07:37:02PM 0 points [-]

Ok, that's a fair cop. I don't usually code in Python and could well have got that wrong. Still, if that were the problem then the desired solution should have been a correction of my syntax error, not a change from two returns to one; so I stand by my criticism that the database is too small.

Comment author: Solvent 20 January 2012 04:02:09AM 0 points [-]

Isn't the "return depth == 0" solution simpler and so superior? (That's a question, I don't actually know Python that well.)

Comment author: RolfAndreassen 20 January 2012 05:51:10AM 2 points [-]

A point of taste. My solution makes it explicit what is being checked for: Unclosed parens.