Ll- kreverse 628

my code is running perfect how am i supposed to make the faction i mean what to pass atleast give some hint’how one would know what is your function prototype

hey @neeleshr628, sorry I don’t get it. Can you please explain your query clearly.

my code is running but how to submit it i mean it is given in the question that node of the linked list is given but when i am submitting it is showong no output but when ihave testd making my own linked list it is running perfect

hey @neeleshr628, you code is even giving runtime error for this testcase
9 3
9 4 1 7 8 3 2 6 5

because your logic is not correct it is making next of 4 to NULL, and after that you cannot access onward Linked list.
Dry Run your code for this test case once, If you even not able to correct this, I will share your logic for this.

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.