There has been some discussion of introducing a new close reason, “general reference”:
This question is too basic; it can be definitively and permanently answered by a single link to a standard internet reference source designed specifically to find that type of information.
This close reason is currently available on two Stack Exchange sites: English Language and Usage and Science Fiction and Fantasy. The return from experience is mixed: it's useful sometimes, but has a huge potential for abuse.
I've written my opinion on general reference as a close reason on the main meta; here's a quick summary. I disagree with Google as a benchmark for declaring a question unworthy of the site, because it is harder to find relevant search results when you have no idea of what the answer is, and most importantly it is very hard to evaluate whether the search results are reliable and give a complete picture.
A far better metric (and this is the way we apply closing as general reference on SF&F, and the way we use “too localized” in the absence of “general reference” on French Language and Usage) is to look up the obvious keyword in the obvious reference. Wikipedia is the obvious reference in many cases (on French SE, “any dictionary would give the answer” is the usual metric).
So let me look up median. It's all about statistics, the article doesn't have the word “array” anywhere. Ok, maybe it's in another article listed on the disambiguation page. Hmmm, no.
Now let me try your Google search. The top results for me are:
So I disagree that this question is too easy for this site. It doesn't show a lot of effort — I do agree that the asker should have at least been able to find the Wikipedia page on selection algorithms — but it is a legitimate question.
I strongly object to your remark that “OP is too new in CS”. There is nothing wrong about being new to CS, this site is about computer science at all levels. Please read
log n
times which will be spent for each item removing. (e.g see heapify function on wiki), also take careo
andO
are different things. $\endgroup$