implement this method:
numOccurrencesRec(LNode node, int n, int key)– This method takes as parameters a reference to the head of a linked list, a position specified byn, and a key. It returns the number of occurrences of the key in the linked list beginning at then-th node. Ifn= 0, it means you should search in the entire linked list. Ifn= 1, then you should skip the first node in the list.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here