Data-Structures-and-Algorithms icon indicating copy to clipboard operation
Data-Structures-and-Algorithms copied to clipboard

Implemented basic methods for `LinkedList` class

Open ybrenning opened this issue 3 years ago • 0 comments

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

ybrenning avatar Jan 18 '22 20:01 ybrenning