Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Cycle from the last element to the first, alternately adding each subsequent element to the beginning of the resulting list, then to the end (in this case, the first action is determined depending on the parity of the total number of elements.
You know the number of elements in the array, iterate each element and assign Count() - n, where n is the current iteration. Well and to do it certainly not means SQL.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question