I would like to get all combination of a number without any repetition.
Like 0.1.2, 0.2.1, 1.2.0, 1.0.2, 2.0.1, 2.1.0.
I tried to find an easy scheme, but couldn't. I drew a graph/tree for it and this screams to use recursion.
But I would like to do this without recursion, if this is possible.
Can anyone please help me to do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…