whats wrong in this code
Cycle detection and removal
initially both large and small are head so if condition holds true but while is false
come out and set large->next=NULL(means head->next=NULL) every time
correct way to do it is using flod’s algorithm
1 Like