Very Easy to understand recursive Method
Simple recursive solution accepted\n\nclass Solution {\npublic:\n    \n    void solve(Node* l, Node* r){\n        \n        if(l == NULL || r == NULL) return;\n
Simple recursive solution accepted\n```\nclass Solution {\npublic:\n    \n    void solve(Node* l, Node* r){\n        \n        if(l == NULL || r == NULL) return;\n        \n        l->next = r;\n        r->next = NULL;\n        \n        solve(l->left, l->right);\n        solve(l->right, r->left);\n        solve(r->left, r->right);\n    }\n    \n    \n    Node* connect(Node* root) {\n        if(root == NULL) return NULL;\n        if(root->left == NULL) return root;\n        \n        solve(root->left, root->right);\n        return root;\n    }\n};\n```
['Recursion', 'C', 'C++']