Skip to content

Add a __len__() function to doubly_linked_list.py - #2042

Closed
Lakshmikanth2001 wants to merge 25 commits into
TheAlgorithms:masterfrom
Lakshmikanth2001:master
Closed

Add a __len__() function to doubly_linked_list.py#2042
Lakshmikanth2001 wants to merge 25 commits into
TheAlgorithms:masterfrom
Lakshmikanth2001:master

Conversation

@Lakshmikanth2001

@Lakshmikanth2001 Lakshmikanth2001 commented May 28, 2020

Copy link
Copy Markdown
Contributor

Blocked by #2052

Describe your change:

in linked list class constructor i have added a data member called size and a function call length

  • Add an algorithm?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

Comment thread data_structures/linked_list/__init__.py Outdated

@cclauss cclauss left a comment

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.

Please undo the maths/prime_check.py change and move that to a separate pull request as discussed in CONTRIBUTING.md.

@TheAlgorithms TheAlgorithms deleted a comment from onlinejudge95 May 31, 2020

@cclauss cclauss left a comment

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.

Blocked by #2052

@cclauss cclauss changed the title adding size function to linkedlist data_strucuture Add a __len__() function to doubly_linked_list.py Jun 1, 2020
@cclauss

cclauss commented Jun 1, 2020

Copy link
Copy Markdown
Member

@Lakshmikanth2001 Thanks for this pull request because it found a flaw in doubly_linked_list.py. It would be great is you could fix that algorithm so that the tests in #2052 pass. If not, I will try to fix that at the end of this week. Thanks again.

@stale

stale Bot commented Jul 1, 2020

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale Used to mark an issue or pull request stale. label Jul 1, 2020
@cclauss cclauss removed the stale Used to mark an issue or pull request stale. label Jul 1, 2020
@stale

stale Bot commented Jul 31, 2020

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale Used to mark an issue or pull request stale. label Jul 31, 2020
@stale

stale Bot commented Aug 7, 2020

Copy link
Copy Markdown

Please reopen this issue once you commit the changes requested or make improvements on the code. Thank you for your contributions.

@stale stale Bot closed this Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Used to mark an issue or pull request stale.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants