Skip to content

Linked List: Define a Cycle #583

Open
@chrisVillanueva

Description

@chrisVillanueva

With the current Linked List implementation, is there a way to create a cycle? Meaning, if I have Linked List Nodes

[ 1, 9, 87, 5, 22]

can I reference the node at position 2 (value=87) with the tail node's (value-22) next property to create a cycle?

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