Iterate once and only once through all the possible configurations of an array

Hello,

I wonder if this is the same.

  • permutations would be 123, 132, 231, 213…

  • configurations in the sense above: 000, 001, 101, 111, …