From 3ab272da4b2f2185197a78dbd1d8b99073202ac3 Mon Sep 17 00:00:00 2001 From: Omkarnath Parida Date: Mon, 5 Oct 2020 00:00:45 +0530 Subject: [PATCH] Style Changed --- Data-Structures/Linked-List/CycleDetection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data-Structures/Linked-List/CycleDetection.js b/Data-Structures/Linked-List/CycleDetection.js index b8e16fe71..910fe2214 100644 --- a/Data-Structures/Linked-List/CycleDetection.js +++ b/Data-Structures/Linked-List/CycleDetection.js @@ -22,7 +22,7 @@ function main () { while (fast != null && fast.next != null && slow != null) { fast = fast.next.next slow = slow.next - if (fast == slow) { + if (fast === slow) { return true } }