Guest User

Untitled

a guest
Oct 20th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. const checkCirc = (cur, next=cur.next) => {
  2. if(cur === next) return true;
  3. if(!next || !next.next || !next.next.next) return false;
  4. return checkCirc(cur.next, next.next.next);
  5. }
Add Comment
Please, Sign In to add comment