I think that the iterative approach to search the element is wrong here since we are using temp in while loop but incrementing head so it will go into infinite loop.
is this correct or not ?
I think that the iterative approach to search the element is wrong here since we are using temp in while loop but incrementing head so it will go into infinite loop.
is this correct or not ?