Skip to content

#21 Circular lists #24

Open
Open
@somekindofwallflower

Description

@somekindofwallflower

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

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions