Linked List Cycle
Easy📝 Description
Determine if a linked list has a cycle
Input Format
Linked list head node
Output Format
true/false
Constraints
0 ≤ number of nodes ≤ 10^4
🔍 Sample Input
[3,2,0,-4] (with cycle)
✅ Sample Output
true
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run