Data-Structures-and-Algorithms
Data-Structures-and-Algorithms copied to clipboard
Implemented basic methods for `LinkedList` class
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