Sometimes I come across a homework-like question, like this one
that is of little value to our collection, as any answer is only of interest and benefit to the original poster (OP). I know the question will be closed.
If I think the OP really wants to learn, however, I occasionally still answer such questions, in the hope that I might help someone. In these cases, I tend to make broad points and suggestions, rather than provide a solution.
Is this alright? Should I stop answering HW-like questions that will likely be closed? I know HW is a thorny issue on this site. I've read elsewhere that HW-like questions should be quickly shutdown and downvoted etc. Whenever I answer such a question, I'm (in a small way) undermining that strategy.