Skip to content

Refactor remove_by_value and print method.#1

Open
SauravBhowmick wants to merge 2 commits intodhavalsays:masterfrom
SauravBhowmick:master
Open

Refactor remove_by_value and print method.#1
SauravBhowmick wants to merge 2 commits intodhavalsays:masterfrom
SauravBhowmick:master

Conversation

@SauravBhowmick
Copy link

1.) Refactored remove_by_value as in the end case it was giving following error:

image

2.) Improved the print function to close the linked list print as None
e.g.: banana -> mango -> grapes -> orange -> None

Updated remove_by_value method to handle empty list case and improve traversal logic.
Improved the case handling for remove_by_value for the end value in the linked list.
Refactor print method to improve readability and remove duplicate code.
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

Successfully merging this pull request may close these issues.

1 participant