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

Why are we not getting an error if the item "figs" isn't even in the list? #67

Open
whyevenquestion1t opened this issue Jan 7, 2023 · 1 comment

Comments

@whyevenquestion1t
Copy link

@ROMEEZHOU
Copy link

Because in the function remove_by_value(self,data), the function would return if data is found and deleted, or it would return when the while loop ends, i.e., we have reached the end of the linked-list without finding the desired data. So if "figs" isn't in the list, this function would return after it goes over the whole list. There would not be any error.

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

No branches or pull requests

2 participants