This is something that I have never encountered before, so I'd like to bring it up. There are of course similar questions, but I haven't found one about this particular constellation:
One of my answers got a downvote (something that I usually try to avoid), so I had another look at it, to see whether I might have gotten something wrong and might revise or improve it. (Indeed, there was a small bug that I fixed now, but then) I noticed that all answers to this question had exactly one downvote.
(It's certainly not a "great" question, but it is reasonable (and, subjectively, interesting). The answers aren't great either, but reasonable as well, and each of them definitely helpful)
A look at the timeline of the post revealed that the downvotes happened nearly at the same time. A closer look at the reputation changes of the asker and the answerers showed the times for the downvotes:
2015-09-04 21:52:16
2015-09-04 21:52:23
2015-09-04 21:52:25
2015-09-04 21:52:28
2015-09-04 21:52:30
That was quick. There may be several explanations for this. Someone might have read the question and all the answers, and then might have thought "This is all crap" (without feeling the necessity to write a better answer), and downvoted them all. Or someone might have thought that the question was bad, downvoted it, and wanted to punish everyone who dared to answer the question. Or someone might be reeeally quick at reading and judging code snippets, and happened to find all answers "not useful" (although each of them solved the problem, in different ways). Or someone is on a downvoting-spree.
However, I don't really care about the downvote, but others might wonder what they did wrong there. I'm curious to see whether it will be caught and handled by this magic mysterious "anti-serial-voting-script", but would also like to hear what others think, or if any other action should be taken here.
%
(and maybe some pseudocode example)". I would also like answer which would provide very detailed explain of how this problem could be solved so we would make sure that any beginner (possibly like OP) would be able to understand it.