mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-22 21:01:50 +08:00
Documentation for 78fbb40e9d
This commit is contained in:
@@ -137,7 +137,7 @@ Functions</h2></td></tr>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Implementation of singly linked list algorithm. </p>
|
||||
<p>The linked list is a data structure used for holding a sequence of values, which can be added, removed and displayed. </p>
|
||||
<h3><a class="anchor" id="autotoc_md20"></a>
|
||||
<h3><a class="anchor" id="autotoc_md27"></a>
|
||||
Algorithm</h3>
|
||||
<p>Values can be added by iterating to the end of a list(by following the pointers) starting from the first link. Whichever link points to null is considered the last link and is pointed to the new value.</p>
|
||||
<p>Values can be removed by also iterating through the list. When the node containing the value is found, the node pointing to the current node is made to point to the node that the current node is pointing to, and then returning the current node to heap store. </p>
|
||||
|
||||
Reference in New Issue
Block a user