answersLogoWhite

0

To delete an node in a linked list...

  • If the head node is empty, stop, and return failed.
  • Interate thorugh each member of the list.
  • Remember at each iteration, the address of the privious node.
  • If the current node is the head node or not the desired node, continue to the next iteration.
  • Move the current node's pointer value to the previous node's pointer.
  • Delete the current node, and return success.
  • Return failed..
User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is anlgorithm in math?

An algorithm is a systematic method used to solve some problem.An algorithm is a systematic method used to solve some problem.An algorithm is a systematic method used to solve some problem.An algorithm is a systematic method used to solve some problem.


What is the proof of correctness algorithm and how does it ensure the accuracy and reliability of a given algorithm?

The proof of correctness algorithm is a method used to demonstrate that a given algorithm performs as intended and produces the correct output for all possible inputs. It involves creating a formal proof that the algorithm meets its specifications and behaves correctly under all conditions. By rigorously analyzing the algorithm's logic and structure, the proof of correctness ensures that it is accurate and reliable in its operations.


What is the difference between a partial product algorithm and a partial product method?

Very little. An algorithm is a method that has been expressed in a detailed, unambiguous form.


What is difference between lemma and algorithm?

A Method that used to be a comouter to soultion of promlems is called algorithm.


Can you say that an iterative methods to solve a non-linear equation is actually a numerical method?

Yes, you can. Any iterative method/algorithm that is used to solve a continuous mathematics problem can also be called a numerical method/algorithm.


Is an algorithm any special method of solving a problem?

Yes.


What si 20x38?

2,636 you can use the Lattice Method algorithm


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.


Which of the class in java.io package defines a method to delete a file?

The java.io.File class in Java has a delete() method to delete the file. See related link for details.


What is one method of creating multimedia?

What is one method of creating multimedia?


Which farming method is linked to the physical landscape of East Asia?

which farming method is linked to the physical landsacape of East Asia


What is algorithm and what are its characteristics?

An "algorithm" is simply a method to solve a certain problem. For example, when you use the standard method you learned in school to write down two numbers, one beneath the other, then add them, you are using an algorithm - a method that is known to give correct results in this particular case.