I want to generate permutations of the list while considering the following constraint:
- Every permutation starts with a number 0
Thus, I have a list li = [1,2,3,4], and I am interested in finding all unique permutations for those 4 numbers while adding a number 0 at index 0 to each permutation.
For example:
[0,1,2,3,4]
[0,1,3,2,4]
and so on.