-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated LinkedList.cpp #328
Conversation
Implemented Reversing a Linked List in C++ and corrected the error in the program
I find the changes to be superfluous. |
Please update my work |
@iamrajiv Please update my work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YashThakare update the readme file
@@ -115,10 +115,28 @@ int DeleteNode(int pos) //Takes position to delete the corresponding Node from | |||
return x; | |||
} | |||
} | |||
|
|||
void ReverseList() //To Reverse a Linked List |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YashThakare I think you have implemented an iterative way of reversing the linked list so mention that in the code comments. Also, add time and space complexity for the same.
@YashThakare Please, resolve merge conflicts |
I will resolve merge conflicts @iamrajiv |
Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions! |
Implemented Reversing a Linked List in C++ and corrected the error in the program