What is the proper course of action for questions asking for an example code or algorithm? I've come across a few of those in recent weeks, i.e., this one:
What are some reasonably simple single file C programs that are allocation/pointer intensive and do something interesting eg: implement an algorithm or perhaps do something mathematical?
I've marked it to be closed as "asking for library, tool or offsite resource" but now I realize it is not that at all.
This question can be answered and one could find it pretty useful. I.e., answer can mention some classic algorithm and explain how pointers are used there.
I'd think of considering it "too broad"
There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.
but answers could be quite compact, and well, in theory any question can possibly have an infinite amount of answers. "too many possible answers" is quite subjective as well - I don't think people can come up with more than 20 different simple but demonstrative programs. What if I edit question to "less than 100 lines" instead of "simple" - it surely will cut it down? There are lots of questions where people ask for one-liners in python and get quite a few different answers, but those are not closed as too broad.
So, I realized I don't really know what is the proper way to deal with such questions. It feels to me the border is very slim and since lack of research alone is not really a closing reason, should such questions be closed or edited or what else? Honestly, now I think I could have upvoted it if it would be formulated in just a bit more shaped up way.