Problem 400
-- Unix ls
read problem
Tips
A straight-forward problem. Steps include:
- Prepare two level char arrays for
inputing and outputing. You can either use static
declaration (at most 100 strings) or dynamically create
the arrays according to size needed.
- Sort input strings. I use qsort.
- Find out column.
- Find out row
- Concate the input strings into
output strings.
- Print out the output strings.