diff --git a/Data-Structures/Linked-List/CycleDetection.js b/Data-Structures/Linked-List/CycleDetection.js index ff07bca60..b8e16fe71 100644 --- a/Data-Structures/Linked-List/CycleDetection.js +++ b/Data-Structures/Linked-List/CycleDetection.js @@ -15,6 +15,7 @@ function main () { Link for the Problem: https://leetcode.com/problems/linked-list-cycle/ */ + const head = '' // Reference to head is given in the problem. So please ignore this line let fast = head let slow = head