You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following is the linked list node structure.
template <typename T>
class Node {
public:
T data;
Node* next;
Node(T data) {
next = NULL;
this->data = data;
}
~Node() {
if (next != NULL) {
delete next;
}
}
};
the corrected code:
#include <bits/stdc++.h>
/************************************************************
************************************************************/
Node* solve(Node* first, Node* second) {
}
Node* sortTwoLists(Node* first, Node* second)
{
// Write your code here.
if(first == NULL)
return second;
}
The text was updated successfully, but these errors were encountered: