You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix q_reverse to correctly swap prev and next pointers while traversing
the queue. The previous implementation did not properly update the head
node's next and prev pointers, leading to potential list corruption.
Key fixes:
Ensure that head->next and head->prev are correctly updated.
Traverse the list safely without modifying pointers
before they are used.
Maintain circular doubly linked list structure.
Change-Id: I31bdc6ec4d67287c16852fefbdad13f389ef97fb
0 commit comments