Question: Please write the program in C++! You are going to apply RadixSort to sort vectors. The input starts with an integer number which indicates the
Please write the program in C++!

You are going to apply RadixSort to sort vectors. The input starts with an integer number which indicates the number of vectors to be sorted. Then vectors follow, one vector per line. Each vector consists of 10 numbers where each number has a value in {0, 1, 2, 3}. Entries of a vector are separated by a space. Output the sorted sequence of vectors, one per line. Vector i must appear before vector j in your output if and only if for some d elementof {1, 2, .... 10}, vector i is smaller than or equal to vector j on the dth entry, and the two vectors are equal for any of the first d - 1 entries. More precisely, the above output example has 6 lines since a "cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
