An example might be:
Here is a Python list of data:
[1, 2, 3, 4, 5]
. How do I get the sum?
Or
Here is a complicated data structure:
Foo(complicated_values)
(followed by some copy/paste source code). How do I turnFoo
container into a sorted array ofcomplicated_values
in faster than quadratic time complexity?
These questions are not asking for a reference of any kind, rather they exhibit the classic "what have you tried" problem of asking directly for the solution. The question is asking for someone to write code directly into the answer box that, when executed, computes the desired effect.
Currently there doesn't seem to be a way to signal this in the close-vote options. There is an option for off-topic questions due to seeking references, but I feel that very much doesn't apply to a question like this.