You are viewing a single comment's thread. Return to all comments →
while head and head.next - Wouldn't this be a infinite loop in case of a perfect LL as we are not altering it.
Seems like cookies are disabled on this browser, please enable them to open this website
Cycle Detection
You are viewing a single comment's thread. Return to all comments →
while head and head.next - Wouldn't this be a infinite loop in case of a perfect LL as we are not altering it.