added __len__ function (#1812) · coderjack/algorithms-in-python@f9e0dd9 · GitHub
Skip to content

Commit f9e0dd9

Browse files
Akashcclauss
andauthored
added __len__ function (TheAlgorithms#1812)
* added __len__ function Added a function to count number of nodes in linked list * Updated __len__ method used snake_case instead of camel case * Add tests to __len__() Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 38d2e98 commit f9e0dd9

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

data_structures/linked_list/singly_linked_list.py

Lines changed: 30 additions & 0 deletions

0 commit comments

Comments
 (0)