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
This commit refines the is_circular() to use slow and fast pointers
instead of a single pointer iteration. The original approach struggled
to detect mid-list loops without extra storage. The new method
effectively identifies such loops, albeit with a minor increase in
conditional checks, but without requiring additional storage.
0 commit comments