Solution of the exercise about linked lists for the course algorithm and data structures.