Skip to content

Commit

Permalink
Add circular solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ari7946 committed Oct 25, 2019
1 parent 194a208 commit fb2b9dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions exercises/circular/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ function circular(list) {
if (slow === fast) {
return true;
}
if (!fast.next || !fast.next) {
return false;
}
}

return slow;
return false;
}

//module.exports = circular;
module.exports = circular;

0 comments on commit fb2b9dc

Please sign in to comment.