LL - k Reverse no output

plz explain why my code is ot giving output here isthe link

Your code is working just fine.

@sgrarora3 but it is not giving any output on compiling

@ on running it is giving runtime error

Did you just made some changes to your code? The previous code was working fine.


here is a link to your previous code. This one is working.

@sgrarora3 but it working for k =3 only
i figure it out but how to do it for k!=3


plz tell the error in this one

@sgrarora3 the code i send earlier is sent by mistake plz tell the error in this one

@sgrarora3 mam plz reply

here try this function in your code. I worked this out for you. Hope this helps.

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.