April 2026
Intermediate
631 pages
16h 20m
English
In this section, we’ll provide some practice questions to help reinforce your learning. The exercise questions cover almost all the concepts introduced in the chapter. Solutions to each exercise will follow in Section 11.5.
Implementing the peek method in a linked listYour task is to complete the peek function for the Linklist. This method should return an Option<i32> representing the value at the head of the list without removing it.
Making a linked list generic in RustYour task is to modify the current linked list implementation to make the element field of each Node generic, rather than the concrete type i32. This task involves updating the Linklist and Node structs to accept a generic type T. Make necessary ...
Read now
Unlock full access