Skip to content

[Bug]: Wrong Implementation of Finding #7

@ZenithClown

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

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