07-27-2014 10:59 AM
I want to run the 8x8 2D array from right to left interchanging:
the 1st col with the 7th,
the 2nd col with the 1st,
the 3rd col with the 2nd,
the 4th col with the 3rd,
the 5th col with the 4th,
the 6th col with the 5th,
the 7th col with the 6th
you know...
already I can run the secuence but I think that there is a better way... with "Heuristic" or something like that but I tried and I don't know how....
Please help me!
Thank You!
Solved! Go to Solution.
07-27-2014 11:56 AM - edited 07-27-2014 12:11 PM
07-27-2014 12:26 PM
Christian , i think according to the original question rotate array n count value should have been 1.
07-27-2014 12:28 PM
It does not matter what you think. Simply compare the results of the two version. 😄
(I actually left the old code in place first and made sure the results are the same. If you use "1", it rotates the other way.)
07-27-2014 12:30 PM
Hmmm, okay.
But great solution as always ......kudos..
07-27-2014 12:54 PM
I agree that the text descriptions is a bit confusing about the direction, because it just talks about "interchanging". I assumed that the attached code was correct, but just needed simplification.