Th from end https://ide.codingblocks.com/s/177577

where i am going wrong

@ashutoshu hey ,I have commented out the code due to which ans is wrong,k will be in limits of length of linked list do not apply modulo operations and add or sub operations.Rest your logic is correct.Here is link of code :https://ide.codingblocks.com/s/177585
Happy coding :slight_smile:

than you…i tried extra

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.