Skip to content
RED SAG Skills
hard20 pts · first answer countshash-mapsetscycle-detection

Detecting a loop in a linked list

You can detect a cycle in a linked list with a Set of visited nodes or with Floyd's fast and slow pointers. What is the main trade-off?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions