Re:Quixey Challenge - 1 Bug, 1 Minute, $100
by timb on Tuesday December 06, 2011 @11:59AM
(#3319920)
http://i.imgur.com/o1A7M.png
[ Parent
| on HN ]
Re:Quixey Challenge - 1 Bug, 1 Minute, $100
by radq on Tuesday December 06, 2011 @12:51PM
(#3320118)
There's also this: http://i.imgur.com/vvKOR.png
Re:Quixey Challenge - 1 Bug, 1 Minute, $100
by Darmani on Tuesday December 06, 2011 @01:06PM
(#3320180)
That one's really damning. It's implying that they're using some sort of syntactic equivalence to compare solutions, which is a big no-no. It's not that difficult to generate a bunch of tests and run both solutions through an interpreter, and in this case, it's not that hard to compare them both on every possible input by running them through an abstract interpreter.
Re:Quixey Challenge - 1 Bug, 1 Minute, $100
by mindstab on Tuesday December 06, 2011 @05:48PM
(#3321474)
Yeah I got that and
arr.push(x) marked wrong instead of their arr.add(x)
Re:Quixey Challenge - 1 Bug, 1 Minute, $100
by jerfelix on Tuesday December 06, 2011 @12:41PM
(#3320075)
Not to mention, their example said that the return value would be (3 + 5) / 2, as opposed to just returning 4.
Here I was, trying to figure out how to write a class named Stack, that behaved like a list, had a push(self,x) method that did an append. Also, adjust the "op()" function so that instead of calculating the results of a mathematical operation, it returned a string holding the operation (like "(3 + 5)") being sure to add parentheses if there was a precedence issue.
...all in one line of code.
yeah, that one particular challenge was screwed up. The other ones were much better.
Re:Quixey Challenge - 1 Bug, 1 Minute, $100
by david_a_r_kemp on Tuesday December 06, 2011 @12:20PM
(#3319984)
Yeah, I got annoyed by that too. The fact you have to guess what calls they used makes this distinctly not a bug fixing challenge.
Re:Quixey Challenge - 1 Bug, 1 Minute, $100
by orionhickman on Tuesday December 06, 2011 @01:46PM
(#3320376)
The one-line rule is your friend.