Question: I'm trying to figure out how to do some recursive linked list methods (in java), but I'm having some trouble with them. The methods are
I'm trying to figure out how to do some recursive linked list methods (in java), but I'm having some trouble with them. The methods are remove (E element) and max(). Both must be recursive. Here's my code so far:
public void remove(E element){ head=remove(head,element); } public Node
public E max(){ return max(head); } public E max (Node
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
