Leetcode 141 – LinkedList Cycle – Golang



Leetcode 141 – LinkedList Cycle – Golang

Leetcode 141 - LinkedList Cycle - Golang

Hi Gophers!
Here’s two solutions in Go for finding a Linked List Cycle. 🙂

Also visualising the Floyd’s Cycle Algorithm / Tortoise-Hare Algorithm for a solution in constant O(1) memory.

0:00 Question
0:16 Visualise Map Solution Example 1
1:06 Visualise Map Solution Example 2
1:50 Coding it out Solution 1
3:28 Visualise Flyod’s Algo Example 1
4:37 Visualise Flyod’s Algo Example 2
5:35 Coding it out Solution 2

#coding #codinglife #codingninja
#golang #golangtutorial #gophers #leetcode #leetcodesolution