Question: Given a linked list, how can you determine if it contains a cycle?
Options:
Correct Answer: All of the above
Solution:
You can use a hash table to track visited nodes, two pointers to detect cycles, or recursion to check for cycles, making all methods valid.