You don’t reassign the head value at all
while(head)
//loop
Here, the head pointer is never altered. So the loop is an infinite one.
9
solved Code hangswhile running [closed]
You don’t reassign the head value at all
while(head)
//loop
Here, the head pointer is never altered. So the loop is an infinite one.
9
solved Code hangswhile running [closed]