answersLogoWhite

0


Best Answer

you dont. you insert a node after it and copy all contents of the previous node in it and put the new values in the old node. just make sure to keep the connections intact.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you insert a new node in a linked list before any given node within the linked list in O of 1?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is cprogram code to insert a node in single link list?

Write Code to Insert a Node in a Single Linked List at any given Position.


What movies are in the Mall of America?

Any answer given here would be out of date within a week, if not sooner. Better to go to one of the websites linked below to find your answer.


Multiculturalism is usually linked with what other term?

diversity to identityMulticulturalism is usually linked with the cultural diversity of different people in a given country.


What is the carbon neutral equation?

CO2 generated within a given time = CO2 absorbed within a given time


Who had given the Work linked democracy explanation of Quality of Work Life?

Evic Tryst


What is Hestia's roman name and why was it given to her?

Hestia's Roman name was Vesta. It is not known why the name Vesta was given to her. Vesta was one of theearliestRoman deities and she was a very important goddess before the Romans were influenced by theGreeks. As a result ofGreekinfluence, she was then linked to Hestia because she, too, was the goddess of the hearth.


What is the pressure exerted by a vapor confined within a given space?

pressure exerted by a vapor confined within a given space


Could gift before death be part of the estate?

Yes, gifts that were given within two years of the death can be pulled back into the estate by the executor.


On Habbo how do you get the mystery badge?

The mystery badge was given out to those who created (or linked?) a habbo account on facebook, however, you had to do this within a certain time frame to receive the badge, so the badge isn't commonly seen around the hotel, but the odd user will have it.


Algorithm in creating insert method in linked list?

You sort a doubly linked list the same way you sort any other kind of list or array. You implement a procedure to sort the list or array, and that procedure calls the appropriate insert, delete, or move methods of the list or array.


What is An insert substance given to the portion of experimental group without their knowledge to act as a control?

A placebo is given that is expected to not affect things either way.


What childlike Name is given to significant weather activity linked to sea temperature in pacific ocean?

el nino