added __len__ function · Pull Request #1812 · TheAlgorithms/Python · GitHub
Skip to content

added __len__ function - #1812

Merged
cclauss merged 3 commits into
masterfrom
unknown repository
May 18, 2020
Merged

cclauss merged 3 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Mar 25, 2020

Copy link
Copy Markdown

Added a function to count number of nodes in linked list

Added a function to count number of nodes in linked list
Comment thread data_structures/linked_list/singly_linked_list.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python naming uses snake_case so cur_node

@stale

stale Bot commented May 2, 2020

Copy link
Copy Markdown

@stale stale Bot added the stale Used to mark an issue or pull request stale. label May 2, 2020
used snake_case instead of camel case
@stale stale Bot removed the stale Used to mark an issue or pull request stale. label May 2, 2020
@cclauss
cclauss merged commit f9e0dd9 into TheAlgorithms:master May 18, 2020
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
* 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>
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