Question: option d is -- find and insert a new element in the list public int function(int data) { Nodetemp=head;intvar=0;while(temp!=null) { if(temp.getData()==data) { return var; var

option d is -- find and insert a new element in the list
public int function(int data) { Nodetemp=head;intvar=0;while(temp!=null) { if(temp.getData()==data) { return var; var = var +1 temp = temp.getNext () \} return Integer.MIN_VALUE; \} Select one: a. Find and delete a given element in the list b. Find and return the given element in the list c. Find and return the position of the given element in the list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
