[prev] [index] [next]

Exercise: Sorted List Type

Implement a new SortedIntList data type
  • using a linked list
Implement a library based on this:

typedef ... SortedIntList;
SortedIntList mkEmpty();
void printList(SortedIntList);
SortedIntList insert(SortedIntList, int);
SortedIntList delete(SortedIntList, int);