I posted this question a couple of days ago, after coming across a problem for which I wasn't sure about the optimal solution. I did my best to explain the problem properly, provided example code, information about the context, and even my own working -but inefficient- solution.
Immediately I got two close votes, with the close reason being "Too Broad", and a third one this morning. I may be biased, but to me the question seems fine.
Could someone explain to me what makes this question too broad, so that I can avoid making such a mistake in future questions?