Regarding lecture

what is the use of return in insertAtHead?

Hey @talhashamim001
return is used to return when base case is getting encountered ie head==NULLu can use if else also if u dont want to write return
As such there is no need of return but its a good practice to use return