is there a cycle?
Feb 20, 2025 · 2 min read · Man I want to buy a cycle:( Okay so let’s see if a linked list has a cycle in the list. One way to do that is have a set and iterate the linked list iff there is any duplicity seen in the list Because every listNode has a different memory address, in...
Join discussion
