Let me start off by saying @psubsee2003's answer is correct. My answer isn't meant to compete with his (please upvote his answer), but it is meant to give a little bit of extra context as well as to state for the record that I've undeleted and re-opened the question because it fits our criteria.
The question you're asking about is not too broad.
- It does not ask for multiple implementations
- It has a reasonably scoped problem set (get largest subsequence from a list in python)
- It shows us the inputs, and the expected outputs.
Laziness (no attempt to solve the problem) has never been a reason to close.
One of the commenters left a comment suggesting a diamond mod told them this was the right thing to do:
because op failed to show the attempts and the answerer need to write all the code for him. A mod told me like that. – Avinash Raj 5 hours ago
The funny thing is, Robert Harvey never said that.
Don't confuse work orders with "how do I do this specific thing"
questions.
"How to" questions are the most valuable of all questions, if the
answer is general enough to help other programmers. We want those
questions. We want the answers to those questions. Long live code
samples.
Work orders are another story. We already have a close reason for
those: Too Broad. Use this close reason freely, on those questions
where people just want you to complete their project for them.
I can see the confusion. Robert was talking about a specific problem, those people that post an entire homework assignment and say "Do this homework assignment for me."
That's different than a reasonably scoped question that happens to be a homework assignment. Think the difference between solving one problem and implementing an entire project.
For our discussion, the 'one problem' is "How do I find the largest subsequence in a list in Python", and the project would be "Write a program that takes in a list and returns the largest subsequence."
It all comes down to scope and whether or not we have the necessary information to solve the problem. In this case, the problem is reasonably scoped and we have everything we need to solve it.
In general, feel free to downvote questions that you think don't show enough research effort. That's what the downvote button explicitly says. Don't vote to close just because you don't like a question -- if it meets our criteria for being open, closing it simply sends the wrong message to the user and the rest of the community.
1
question from50
can't be used as a justification today. 25 to go (I'll wait).['', 'a', 'b', 'c', 'd', 'ab', 'ac', 'ad', 'bc', 'bd', 'cd', 'abc', 'abd', 'acd', 'bcd', 'abcd']
vs.['abcd', 'abdc', 'acbd', 'acdb', 'adbc', 'adcb', 'bacd', 'badc', 'bcad', 'bcda', 'bdac', 'bdca', 'cabd', 'cadb', 'cbad', 'cbda', 'cdab', 'cdba', 'dabc', 'dacb', 'dbac', 'dbca', 'dcab', 'dcba']