Description: N has a personal stand in a row, left to right are numbered 1 ~ n, left to right and now report the number 1,2,1,2 ... , a count of 1 of the people out of the line, the number of to 2 immediate stop to the ranks of the extreme right. Reported that the number of process is repeated until all the n individual columns so far. Required to give them the order of columns.
For example: n = 8, the initial sequence: 1,2,3,4,5,6,7,8
A team order: 1,3,5,7,2,6,4,8
To Search:
File list (Check if you may need any files):
Cpp6.cpp