“The total number of ways in which we can choose the elements to swap is 3^3 = 27…”
I’m having a difficult time understanding what a “way to choose the elements” looks like?
An example of what a way to choose the elements for the array [1, 2, 3] would really help.
Thanks,
Joe