-
Notifications
You must be signed in to change notification settings - Fork 270
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
Added Reverse Linked List Problem. #20
Conversation
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.
Hello @ulasaydin, please make the requested changes! Thanks.
var next = linkedList.getFirst(); | ||
var current = null; | ||
var prev; |
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.
Can't we use let
here, instead of var
?
'var's are replaced with 'let's.
I replaced them, thanks for attention. |
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.
Looks good now! 👍
I added a problem named "Reverse Linked List" with its solution to LinkedList section. It basically takes a LinkedList as parameter, then returns the same modified LinkedList but its elements are in reverse order.