Move all zeros to the front of the linked list

Question–>
https://practice.geeksforgeeks.org/problems/move-all-zeros-to-the-front-of-the-linked-list/1/?category[]=Linked%20List&category[]=Linked%20List&problemStatus=unsolved&difficulty[]=0&page=1&query=category[]Linked%20ListproblemStatusunsolveddifficulty[]0page1category[]Linked%20List#
code–>


it is not reversing the second linkedlist help

Hey @sheikhhaji18

   prev1->next=NULL;
   prev2->next=NULL;
   dummy2=dummy2->next;
   // dummy2=reverse(dummy2); remove
   prev1->next=dummy2;
   (*head)=dummy1->next;

How dummy2 is already reversed?

I think there is some issue in gfg portal
Question wasnt formulated properly

okay @Kartikkhariwal1

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.