Question: Consider the generic singly linked list as defined in class via interface GenericList with implementing classes ElementNode and EmptyNode . Code available on GitHub (Links
Consider the generic singly linked list as defined in class via interface GenericList
- Be sure to appropriately handle all invalid inputs. Document all error handling appropriately.
- subList() does not mutate the underlying list; it returns a new list.
- You may define an additional method or methods on GenericList
as part of your solution if you need to. - Do not use loops; your solution must be recursive.
- For this question, no need to do anything with ListADT/ListADTImpl -- just the implementation in ElementNode and EmptyNode.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
