Tag Archives: delete linked list

delete complete linked list with program and Images,better understanding

If we pass head pointer to Delete Method,it should delete the complete linkedlist.Here Main Logic lies as below Steps Step 1: Store Head element into current element Step 2: Point “next Element” of current element to “next Pointer” Step 3: delete current element Step 4: store next pointer to current element Step 5: move next to next element Step… Read More »