You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Optimize Node.has_loop to use constant auxiliary space instead of O(N) space #15576
The has_loop property in data_structures/linked_list/has_loop.py currently detects loops by traversing the linked list and storing every visited node in a set:
Activity
mohitjoshi-hey commentedon Oct 14, 2026
If considered valid, then I would like to submit a PR.