Seeing this question (and others like it), it was remarked on as being part of a code contest.
This seemed to me as a fair reason for flagging the question, but after clicking on "should be closed", no option was really relevant.
More reasons for flagging questions? Maybe an additional level like the "Off topic" section?
-
Someone has commented to that effect - stackoverflow.com/a/35252638/2802040– Paulie_DCommented Feb 7, 2016 at 11:22
-
@Paulie_D - I saw that comment, that's how I know it's part of a contest. I'm talking about the fact that there is no real relevant flag for this– shapiro yaacovCommented Feb 7, 2016 at 11:24
-
1meta.stackexchange.com/questions/131331/…– Hans PassantCommented Feb 7, 2016 at 11:44
-
1Luckily, the competition-abuse questions I've seen have been absolute rubbish anyway and so easily closed for existing reasons. That said, if I found such a question that was not rubbish, I would downvote it anyway and find some excuse to close vote it.– Martin JamesCommented Feb 7, 2016 at 11:50
-
1According to SE staff, some question beeing part of a coding contest is not a close reason. Luckily, most of them are bad anyways and other reaosns apply.– MagischCommented Feb 7, 2016 at 14:51
1 Answer
It's fine to ask questions about homework or contests, as long as the questions are complete and on-topic.
This one is a "fix my code" question without showing any code, so:
Off-topic: Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
The're another question, linked from the comments, about the same subject: Correctness of algorithm for finding diameter of graph. This one is too broad, because this is the entire problem statement:
Can anyone prove its correctness or prove it is false