I have an array like this
[0,2,3]
The possible shuffling of this array are
[0,2,3], [2,3,0], [3,0,2], [3,2,0], [0,3,2],
Try a recursive approach. Here's a hint: every permutation of [0,2,3] is either
[0]
[2,3]
[2]
[0,3]
[3]
[0,2]