Skip to content

🐛 Needed code modification for insert method in LinkList code #1004

@harishnanthans

Description

@harishnanthans

If I use the below-insert method, I will give the input as insert(value, lengthOfTheList).
In this scenario, the value is added to the end of the list, but the tail is not changed to the end of the list.

image

In the above example, I add the value at the end of the list, but the tail is not changed to the end.
🐛 tail has another node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions