Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added Reverse Linked List Problem. #20

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

Merged
ashokdey merged 4 commits into knaxus:master from ulasaydin:master
Oct 4, 2019
Merged

Conversation

Copy link
Contributor

@ulasaydin ulasaydin commented Oct 3, 2019

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

@ashokdey ashokdey Oct 4, 2019

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

I replaced them, thanks for attention.

ashokdey reacted with thumbs up emoji

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
Reviewers

@ashokdey ashokdey ashokdey approved these changes

Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /