Skip to content

data_structures/linked_list: Add __str__() function #3960

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

Closed
arif599 opened this issue Nov 26, 2020 · 1 comment
Closed

data_structures/linked_list: Add __str__() function #3960

arif599 opened this issue Nov 26, 2020 · 1 comment

Comments

@arif599
Copy link
Contributor

arif599 commented Nov 26, 2020

Background: I just started learning Data Structures and Algorithms, while comparing my implementation of the Linked List class. I think adding a str() function to init.py can help users see the values inside the Linked List and also see where the numbers are pointing to.

Example output: 5 --> 14 --> 85 --> 20

If this is allowed, please assign this issue to me, I would like me to make this change. Thanks!

@amaank404
Copy link
Contributor

Great, You can start without asking, We will check the PR soon

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

No branches or pull requests

2 participants