4 ms·
http://i.imgur.com/o1A7M.png http://i.imgur.com/o1A7M.png
by timb 15y ago
http://i.imgur.com/o1A7M.png http://i.imgur.com/o1A7M.png
- deleted 15y ago[deleted]
- david_a_r_kemp 15y agoYeah, I got annoyed by that too. The fact you have to guess what calls they used makes this distinctly not a bug fixing challenge.
- jerfelix 15y agoNot 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.
- radq 15y agoThere's also this: http://i.imgur.com/vvKOR.png http://i.imgur.com/vvKOR.png
- Darmani 15y agoThat 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.
- mindstab 15y agoYeah I got that and arr.push(x) marked wrong instead of their arr.add(x)
- orionhickman 15y agoThe one-line rule is your friend.