Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Wrong Implementation of Finding #7

Open
1 of 3 tasks
ZenithClown opened this issue Nov 7, 2022 · 0 comments
Open
1 of 3 tasks

[Bug]: Wrong Implementation of Finding #7

ZenithClown opened this issue Nov 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ZenithClown
Copy link
Owner

Contact Details

No response

What happened?

The method .find() reports all elements to be present in the Singly Linked Lists even when not present.
image

  • Check the .find() method with a mock-up code.
  • Check .next() and .head() method implementation.

Python Version

3.9.12 (default)

What type of operating system are you using?

Windows 10

Relevant log output

llist = SinglyLinkedList()
llist.append(10) # add a new element

# find the new element in the linked list
llist.find("not present") # returns True

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ZenithClown ZenithClown added the bug Something isn't working label Nov 7, 2022
@ZenithClown ZenithClown self-assigned this Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant