Skip to content
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

#21 Circular lists #24

Open
somekindofwallflower opened this issue Jun 14, 2022 · 0 comments
Open

#21 Circular lists #24

somekindofwallflower opened this issue Jun 14, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@somekindofwallflower
Copy link
Owner

somekindofwallflower commented Jun 14, 2022

Description
Given a linked list, return true if the list
is circular, false if it is not.

Examples
const l = new List();
const a = new Node('a');
const b = new Node('b');
const c = new Node('c');
l.head = a;
a.next = b;
b.next = c;
c.next = b;
circular(l) // true

@somekindofwallflower somekindofwallflower added the enhancement New feature or request label Jun 14, 2022
@somekindofwallflower somekindofwallflower self-assigned this Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant