Recently, I posted the following question on Code Review: Convert ES6 yield recursive method to a loop
At the beginning I post a question with actual code, asking if there is a way to write the same thing in a non-recursive way.
I made the error to simplify the code, as in my mind it became easier to understand and rewrite when it's not recursive. And so my question was flagged as pseudocode. I assume this is my fault, and have reverted my changes for now. I don't understand why this rule applies, and why you need all inconsistent parts of my code, but rules are rules so let's say ok. I should not have done this.
After this, my question received negatives votes, and I don't know why. Because when people ask me to clarify something, I did.
And the last edit changed the main purpose of my question. It says "anything that improves performance will be helpful". But that wasn't what I wanted originally. And the post title was changes to "Generate a set of combinations".
I may have explained something wrong; and maybe understood something wrong in the rules. I posted this question here and not on StackOverflow for example, because my code is running well.
So I let the question edited for now. But I want to discuss these changes. Why were these changes made? Was I difficult to understand? Should I have posted this question on StackOverflow or another community site, and so what have I not understood?
What should I do to avoid reproducing the same errors?
I assure that I do my best. I try to be as clear as possible and I try to do things following the help.