please check my code
Getting wrong ans
Are you talking about the question
“Linked List k append”??
in your code there is no function related to this
my logic is from line 96
what if k>n
suppose for this case
7
1 2 2 1 8 5 6
9
this means 9 element shifted to front
which means effectively only 2 elements moves to front
so if(k>n) then
k=k%n
Modified Code
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.