diff --git a/1]. DSA + CP/1]. DSA/3]. 450 DSA by Love Babbar/C++/05]. Linked List/1.2..Write_a_Program_to_reverse_the_Linked_List.[ Recursive_Solution].cpp b/1]. DSA + CP/1]. DSA/3]. 450 DSA by Love Babbar/C++/05]. Linked List/1.2..Write_a_Program_to_reverse_the_Linked_List.[ Recursive_Solution].cpp index ff48a5d53..183ef5585 100644 --- a/1]. DSA + CP/1]. DSA/3]. 450 DSA by Love Babbar/C++/05]. Linked List/1.2..Write_a_Program_to_reverse_the_Linked_List.[ Recursive_Solution].cpp +++ b/1]. DSA + CP/1]. DSA/3]. 450 DSA by Love Babbar/C++/05]. Linked List/1.2..Write_a_Program_to_reverse_the_Linked_List.[ Recursive_Solution].cpp @@ -20,29 +20,3 @@ class Solution { } }; -//<----------> GFG Question Solution <-------> - - -class Solution -{ - public: - //Function to reverse a linked list. - struct Node* reverseList(struct Node *head) - { - Node* curr = head; - Node* prev = NULL; - Node* move = NULL; - - while(curr!=NULL){ - - move = curr -> next; - curr->next = prev; - prev = curr; - curr = move; - - } - return prev; - } - -}; -