Exercises for Chapter #11 of A Common-Sense Guide To Data Structures and Algorithms
Get The Book!Rewrite the index_of method using recursion instead of a while loop.
Write a method that attaches two linked lists together.
Write a method that reverses a linked list.
Write a method that takes two linked lists and puts them together with a riffle shuffle. That is, if you riffle shuffle the following lists: [1, 3, 5, 7] and [2, 4, 6, 8], the resulting list should be [1, 2, 3, 4, 5, 6, 7, 8].