Earlier quoted context omitted.
The first question for example is what would be a low-quality question in SO, and could easily have been a homework assignment. It doesn't show any effort from your side, you just pose the question and expect other people to answer it fully, without explaining what you attempted, why it worked/didn't work, where you got stuck, etc.
> It doesn't show any effort from your side, you just pose the question You probably assumed I asked that question? If so, the assumption was incorrect, I answered it. > without explaining what you attempted, why it worked/didn't work, where you got stuck I don't think any of that is possible to do. The question, and my answer, are too simple to decompose into smaller parts. Not enough runway to start and get stuck.…
The question is asking about the best way of doing X, which has a clear substep of "any way of doing X". Not only that, it's asking about a code solution, not just maths/combinatronics. Not a single line of code in a question about finding the optimal (not any) solution for doing some algebra in code is, IMHO, reason enough to close it.
Edit: for example, I'm not asking and so have no stakes on the question but can already try to think about brute-forcing it, which already shows more effort than the author SHOWS at attempting a solution.