University of Arizona, Department of Computer Science

CSc 120: Linked List Sorting Examples

Input file information

The examples are based on the input files below:

sort01.txt
sort02.txt
sort03.txt
sort04.txt
sort05.txt
sort06.txt
sort07.txt

Examples

  1. Input: sort01.txt
    Output:
    List[ 3; 2; 1; ]
  2. Input: sort02.txt
    Output:
    List[ 17; ]
  3. Input: sort03.txt
    Output:
    List[ ]
  4. Input: sort04.txt
    Output:
    List[ 1; 1; 1; ]
  5. Input: sort05.txt
    Output:
    List[ 3; 2; 1; ]
  6. Input: sort06.txt
    Output:
    List[ 24; 19; 17; 8; 8; 5; 2; 2; ]
  7. Input: sort07.txt
    Output:
    List[ 8; 6; 5; 4; 2; ]