Question: Fill in the code in the following recursive helper function Duplicate. Fill in the blanks. bool Duplicate(NodeType* listPtr, NodeType* list2) const, I/ Pre: listPtr and
Fill in the code in the following recursive helper function Duplicate.
Fill in the blanks.
bool Duplicate(NodeType* listPtr, NodeType* list2) const, I/ Pre: listPtr and list2.listData have been initialized Il Post: Duplicate is true if listPtr and list2.listData II point to identical lists; IIduplicate is false otherwise. if else if ( else if ( else if (_) else
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
