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
-
Input: sort01.txt
Output:
List[ 3; 2; 1; ]
-
Input: sort02.txt
Output:
List[ 17; ]
-
Input: sort03.txt
Output:
List[ ]
-
Input: sort04.txt
Output:
List[ 1; 1; 1; ]
-
Input: sort05.txt
Output:
List[ 3; 2; 1; ]
-
Input: sort06.txt
Output:
List[ 24; 19; 17; 8; 8; 5; 2; 2; ]
-
Input: sort07.txt
Output:
List[ 8; 6; 5; 4; 2; ]