Permutation algorithm for n characters in x positions
问题 e.g. A permutation algorithm for {&, *, %} to be placed in 8 positions: &&&&&&&&& &&&&&&&&* &&&&&&&&% &&&&&&&*% &&&&&&&** ... Heap's permutation algorithm I saw on the Internet works just for those who the number of characters are equal to the number of positions, And those who can work with unequal number of characters and number of positions, Only work with integers, Not characters. I also have to say I haven't reached any working algorithm up to now, As I don't know anything about