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
What are friend classes? What are advantages of using friend classes?
Why do we use the using declaration?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What are default parameters? How are they evaluated in c++ function?
What does obj stand for?
What is Destructor in C++?
Explain the properties and principles of oop.
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
Can we distribute function templates and class templates in object libraries?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
When can I use a forward declaration?
What is an operator function? Describe the function of an operator function?
What are proxy objects in c++?
List the special characteristics of constructor.
What do you understand by zombie objects in c++?