in the implementation of ll with the help of OOPs , sir said it is not a nice approach in comparison to making different functions?
Implementation of linked list?
this is because making function and using them is bit easy to handle and also simple in this case
if you make class then head of list is not available outside
so if you have to make a function in which head is to be passed then you have to make 2 function one for passing head and other for main function
if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like : and don’t forgot to mark doubt as resolved
then why is all other data structures (stack,…) sir implemented it using classes. ?
to explain you oops and working of it
and also in case of stack you don’t have to thing like head
oops have also merits
okay ! can you explain me what you told for the linked list case ? i didn’t get that .
i said function are more easy to handle and simple straight as compared to classes
that’s why sir prefer to use function in ll
if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like : and don’t forgot to mark doubt as resolved
you said something about the head ? pls explain me that
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.