Re:Show HN: 15-question programming quiz with answers
by rodovich on Tuesday May 23, 2017 @01:36PM
(#14403237)
Additionally, question 2 amounts to "what is the usage of python's queue class", question 4 requires knowing whether array indexes start at 0 or 1 in python, and question 8 amounts to "what is the usage of python's bytearray class".
[ Parent
| on HN ]
Re:Show HN: 15-question programming quiz with answers
by philh on Tuesday May 23, 2017 @06:32PM
(#14405980)
I'm not sure that's fair about question 2. It's hard to say because I know python (but not the deque class), but none of the incorrect answers seem like they'd be correct in any sensible language.
Like, whatever language you're using, you need to push the children of the current node on to the queue. Only one answer looks like it could reasonably do that.