make a middle node of doubly linklist to the top of the list
Answer / hussein
middle->prev->next = middle->next;
middle->next->prev = middle->prev;
// Now make the middle as head.
middle->prev = NULL;
middle->next = head;
head->prev = middle;
head = middle;
|Is This Answer Correct ?||2 Yes||0 No|
Are there interfaces in c++?
What is a constructor initializer list and when we use constructor initializer list?
Why c++ is faster than java?
if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3
What is abstraction in c++?
What is the use of default constructor?
simple c++ program for "abcde123ba" convert "ab321edcba" with out using string
How to avoid a class from instantiation?
What is ios flag in c++?
How do I get good at c++ programming?
What c++ library is string in?
What is setiosflags c++?