Doubt about question itself

do i have to make whole of LinkedList again , as shown in next videos , implementation is linked list function is done .

@vb180198 it’s mentioned in question that space complexity should be O(1),
so change next pointers of nodes inplace!

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.