Skip to content
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

Merged
merged 4 commits into from
Oct 4, 2019
Merged

Conversation

ulasaydin
Copy link
Contributor

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.

Copy link
Member

@ashokdey ashokdey left a 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.

Comment on lines 2 to 4
var next = linkedList.getFirst();
var current = null;
var prev;
Copy link
Member

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.
@ulasaydin
Copy link
Contributor Author

I replaced them, thanks for attention.

Copy link
Member

@ashokdey ashokdey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants