Hi all, I turn to you to ask for your help with the following problem, I have the following list:
{{2,15,22}, {4,13,27}, {3,17,29}, {5,18,29}, {3,11,25}}
and what I try to do is THE FOLLOWING:
{{15,22},{15,22},{13,27},{13,27},{13,27},{13,27},{17,29},{17,29},{17,29},{18,29},{18,29},{18,29},{18,29},{18,29},{11,25},{11,25},{11,25}}
as will realize it is not very common but I think someone may help.
following with list, if I have the next list
{{15,22}, {27,13}, {17,29}, {29,16}, {11,25}}
ordering follows if the second element of each list is smaller than the first, then make an exchange of the second change to the first, in our case the next element is the first greater{27,13} should be {13,27} and also have another element with the same problem {29,16}, should be {16,29}
any idea is welcome.