Singly Linked List Even or Odd?
Given a singly linked list, respond with true if the number of nodes is an even number. You can assume that if the list is null, that it is even.

Assume the node class is defined as as:
public abstract class SinglyLinkedNode{ public boolean hasNext(); public T getData(); public SinglyLinkedNode getNext(); }

Answer

Answers are hidden from search engines.
linked-lists lists data-structures coding