Live data from Hacker News

Quixey Challenge: $100 for a 1-Minute Coding Puzzle

blog.quixey.com

31–34 of 34 posts

Re: Quixey Challenge: $100 for a 1-Minute Coding Puzzle

#31
post #25

Earlier quoted context omitted.

classic blunders of writing a quicksort Actually the classic blunder of writing a quicksort would be writing a quicksort. It's not something you'd normally do in a real code-base. Likewise the classic blunder of these puzzle-tests is that they don't select for the skills that you need to fix real bugs. My first stab at debugging a sort-function would be to write a unit-test. Wonder if any of the candidates did that i…

> My first stab at debugging a sort-function would be to write a unit-test. I applaud your discipline, but I can't help but feel like you're punting at writing code when you say things like this. And the real problem is that unit tests only reflect your expectations. Unless you're familiar with quicksort, you probably won't know what kind of test to write. You'd have to write a very specific dataset: sort(A) ∃ x: A[x…

While I'd tend to agree with you in general, I'd still say that unfamiliarity with Python is enough to blow a minute fretting over semantics - that is not a particularly "line-noise"-free version of quicksort, there's still a bit of non-algorithmic crap to parse (and worry about). As I mentioned above, there's a potential false-bug based on the empty filter statement handling, which is reliant on Python knowledge (it's not at all obvious [and IMO, not a great idea] that a language would auto-convert an empty list to false, some don't, and that's exactly the type of bug that does show up in the real world...).

Bump that to a minute and a half for people that don't do Python, or at least give them a clear assurance that they can assume anything requiring specific Python knowledge is not buggy, and I'd say you're right on, though.

Re: Quixey Challenge: $100 for a 1-Minute Coding Puzzle

#32
post #19

Just tried it. Interestingly, I normally consider myself a good debugger, and about 15 seconds after the minute, I figured it out. I think I might have done so in a minute, if I hadn't been under a 1 minute time limit. Overall, an interesting thing to try. Note you can't get money if you aren't in the US (I was told), but you can still get a t-shirt and brief fame.

That seems to be a strange rule; how would they know where I'm from? As far as I know, Paypal doesn't normally release that information. I could see how they might have to adhere to some sort of policy, yet I don't see how it could be enforced.

I told them, you could of course lie.

Re: Quixey Challenge: $100 for a 1-Minute Coding Puzzle

#33

Tried it, but failed. Alas. That said, it was very enlightening to me just how anxious I was! There is really no downside whatsoever to the challenge, and the possibility of a quick $100, yet I was still questioning whether I should do it. So, I encourage you, do it! Failing is not that bad. :-p

I agree. It was thanks to your comment that I tried the challenge. I didn’t win, but the challenge was totally fair and I feel like I could have won had I been more familiar with algorithms. Even though I failed, I did get a quick refresher on the algorithm in question and learned a new Python standard library function. So next time this kind of opportunity appears, people, try it! (I say next time because I think th…

Ah, thanks for the comment. I'm glad my comment spurred you to give it a try!
Post reply on HN