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

Implemented basic methods for LinkedList class #386

Closed
wants to merge 2 commits into from
Closed

Implemented basic methods for LinkedList class #386

wants to merge 2 commits into from

Conversation

ybrenning
Copy link

SinglyLL.py had a lot of redundant code, namely two if __name__ == '__main__' blocks which were excecuting identical blocks of code.

The class was also missing methods to perform basic operations on a LinkedList object.

I removed the redundant code and added some basic methods for adding and removing nodes. I also updated the driver code and documentation for improved clarity.
In addition, I did some reformatting and typo fixing as the original code did not match the PEP8 Style Guide.

Closes issue #383

This pull request was closed.
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

Successfully merging this pull request may close these issues.

1 participant