It's an assignment I have for class, they must be implemented recursively.
Type: Posts; User: WeaKeN
It's an assignment I have for class, they must be implemented recursively.
public void add(E newEntry);
public boolean add(int newPosition, E newEntry);
public E remove(E item);
public E remove(int position);
public boolean replace(int givenPosition, E newEntry); ...
Well, if I implement getNodeAt recursively, I don't understand how I can implement add(E newEntry) recursively.
I'm working on add(E newEntry) now. It seems like for each of the methods that I need to implement recursively, the private getNodeAt method is doing most of the "hard work." I can make getNodeAt...
Hello,
I'm just learning about recursion and I need some help. I am given a class RLList (a Linked List) and told to re-implement these methods:
public void add(E newEntry);
public...