Pls help me to debug the code
hello @Senjuti256

u have made these functions as memeber function and u r calling them without any object thats why it is showing compilation error.
declare these function outside of ur class and then try
or
make an object of ur node class and use that object to call thes functions
i have tried in the mentioned way but it is still showing segmentation fault

remove that cin>>d , use some counter to read n values.
add return statement in this if
value of k can be greater than n so first take replace k with k%n and then apply ur logic
I did’nt understand that k%n part.Why to take mod?
to make value of k less than n , we r taking mod
refer this->
so in this append question do we need to treat our linked list as circular?
no , treat it like a singly linear list
like do we have to consider that the linked lists are placed 1 after the other so we are taking mod with k?
yeah u can think like that.
