Linked-list k append showing tle help pls


this is my code

ḥello @tharunnayak14 i have gine through your code and your logic has lot of faults .
like the major fault is why are you traversing the whole linked list when there is no need .

can u pls help imnot able to think any other method

@tharunnayak14 i have made your logic or approach working .
try to dry run now you will be able to underestand what was your fault .