Can we remove an element in a single linked list without
traversing?
Lets suppose the link list is like this
1 2 3 4 5 6
We need to remove 4 from this list (without traversing from
beginning) and the final link list shud be 1 2 3 5 6
only thing we know is the pointer to element "4". How can
we remove "4" and link "3" to "5"?
Answer Posted / vishal jagani
yes u can it link list(doubly),....
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
What is iostream in c++ used for?
Is c# written in c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
How can I disable the "echo" feature?
What is meant by entry controlled loop?
How many static variables are created if you put one static member into a template class definition?
By using c++ with an example describe linked list?
How to defines the function in c++?
what are the iterator and generic algorithms.
What does catch(…) mean?
What is time_t c++?
Why would you use pointers in c++?
What is singleton class in c++?
What are the characteristics of friend functions?