Code: Select all
array(1,2,3,4);Code: Select all
array(
array(1,2,3,4);
array(1,3,2,4);
array(1,3,4,2);
array(1,4,2,3);
array(1,4,3,2);
array(2,3,4,1);
...
)Moderator: General Moderators
Code: Select all
array(1,2,3,4);Code: Select all
array(
array(1,2,3,4);
array(1,3,2,4);
array(1,3,4,2);
array(1,4,2,3);
array(1,4,3,2);
array(2,3,4,1);
...
)Could you into a bit more detail? Also, would this be the most resource-friendly solution?hawleyjr wrote:This can be done with a recursive loop.