A relatively-new user with a history of already asking low-quality questions posts what is basically a homework requirement, and asks how it can be done, with no attempt shown.
Users, including myself, chime in that Stack Overflow isn't a do-your-homework-for-you-site, but nevertheless, a few users feel compelled to answer the question anyways, but after pressure from the community, they delete their answers.
This is where it gets weird.
Apparently, the OP saw one of the answers before it was deleted, and then edits their question saying, "i hav done this", and then pastes, verbatim, the contents of one of the now-deleted answers.
Now this really torques me off -- yes, this is a community for answering questions, and yes, bad questions should be improved, but the OP was shamelessly trying to pass off someone else's hard work as their own, in an effort to get more help.
Fortunately, users with 10K+ rep could still see this, so I pointed out that they had not in fact come up with that code themselves, and rolled their question back.
My question is: I honestly don't know how this should be handled.
Is a roll-back to their original question, along with the comment sufficient enough? Is this true plagiarism, and something we should flag for moderator attention, a user who is caught trying to pass off someone else's work as their own? Should I just go get a Coke Zero and move on?
not sure if I need to put (1, 1000) in range or (2, n+1) is fine?
. Probably I would have just added attribution as in Giving credit to a user that is no longer involved with the question