Skip to content

[Bug]: Wrong Implementation of Finding #7

Description

@ZenithClown

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions