Skip to content

Linked List: Define a Cycle #583

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

Open
chrisVillanueva opened this issue Dec 2, 2020 · 1 comment
Open

Linked List: Define a Cycle #583

chrisVillanueva opened this issue Dec 2, 2020 · 1 comment

Comments

@chrisVillanueva
Copy link

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?

@lazarljubenovic
Copy link

That'd be a graph.

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