Skip to content

Initial size needs to be as per the size of root i.e. 0 or 1 or n(if applicable) #108

Open
@SmitaPatankar

Description

@SmitaPatankar

self.size = 0

User is given flexibility to either create linked list with root as None or with a root node given by them.
i.e. size could be 0 or 1

If applicable:
User can also pass root that already has more next nodes.
i.e. size could be n

But, initial size is always set as 0 instead of calculating and setting it as per above logic

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