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

Singly Linked List #4

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
anantkaushik merged 3 commits into master from problem
Jan 29, 2020
Merged

Singly Linked List #4

anantkaushik merged 3 commits into master from problem
Jan 29, 2020

Conversation

Copy link
Owner

@nirmalnishant645 nirmalnishant645 commented Jan 28, 2020

Singly Linked List Implementation, Check for any errors or lack of features or efficiency

while cur_node.next != None:
cur_node = cur_node.next
elems.append(cur_node.data)
print(elems)
Copy link
Collaborator

@anantkaushik anantkaushik Jan 28, 2020

Choose a reason for hiding this comment

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

If you are printing elements here then why storing them in the list?

Copy link
Owner Author

@nirmalnishant645 nirmalnishant645 Jan 29, 2020

Choose a reason for hiding this comment

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

to print them as a list, if I directly print the elements, then won't it just print each element on different lines?

Copy link
Collaborator

@anantkaushik anantkaushik Jan 29, 2020

Choose a reason for hiding this comment

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

learn how to print elements in the same line

nirmalnishant645 reacted with thumbs up emoji
Copy link
Owner Author

@nirmalnishant645 nirmalnishant645 Jan 29, 2020

Choose a reason for hiding this comment

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

Well, I know that already, but never thought about using it here, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@anantkaushik anantkaushik anantkaushik approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

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