About the non recursive code

I think there is some error in the search function. In the while loop I think all head should be replaced by temp.Pls clarify it to me .

Hey @Senjuti256
Yup you are correct
In the non-recursive search function, temp should be used instead of head.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

@Senjuti256 why opened the doubt again? any issue?