Copy List
Create a function that creates a copy of a list. The function will return the pointer to the new list.
Use the following incomplete function definition.
Node* copyList(Node* &head1) {
// . . .
}
- Previous
- Next
Create a function that creates a copy of a list. The function will return the pointer to the new list.
Use the following incomplete function definition.
Node* copyList(Node* &head1) {
// . . .
}