Always returns false
You are not forming the cycle in the linked because of which your code is returning false always.
Dry run and check your buildlist function .
sir i am unable to think logic of build cyclic list function.can you please help with this
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.
@Prabhleen_sheenu hey please check you rinput build function of linkes list from this code ,as you are not building linked list properly ,check this:
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.