hi everyone i would like to ask about a proper algo that i can use to solve this problem,i will try to write the code myself this is my own practice for an exam ..thx..
Each input starts with a positive integer N (≤ 50). In next lines there are N positive integers. Input is terminated by N = 0, which should not be processed.
For each input set, you have to print the largest possible integer which can be made by appending all the N integers.
input,
4
123 124 56 90
5
123 124 56 90 9
5
9 9 9 9 9
0
output
9056124123
99056124123
99999
thank you for replying ...
now im using strings but it seems that the comparison is based on the length of the strings not their value then length (a+b)=length(b+a) then comparison can't get it done ...
can i have a sample code ? will try to see my mistake ...
thx...