singly_linked_list: Added additional documentation, type hints and te… · coderjack/algorithms-in-python@2e2e1b6 · GitHub
Skip to content

Commit 2e2e1b6

Browse files
authored
singly_linked_list: Added additional documentation, type hints and test cases (TheAlgorithms#4988)
This is a followup to TheAlgorithms#4973 (comment) As per given suggestion, I've added type hints to certain methods that don't have them. I have also added documentation and example doctests as a usage example for (most of) those that don't have them. I have also added another test case following the previous test case's format. I noticed that the existing test case from previous pull request might be redundant with the ones I've made, so I decided to create a specific situation where the linked list would have to keep different kinds of data types for each node, in `test_singly_linked_list_2` test function. Some minor changes in strings has been done to keep things consistent with other parts of the document. If it is undesirable, please let me know.
1 parent c886a66 commit 2e2e1b6

1 file changed

Lines changed: 280 additions & 15 deletions

File tree

data_structures/linked_list/singly_linked_list.py

Lines changed: 280 additions & 15 deletions

0 commit comments

Comments
 (0)