Add currentNode variable to Remove Element from a linked list (#25131)
This commit is contained in:
parent
6c680b1ac2
commit
a41806a28d
@ -46,7 +46,7 @@ tests:
|
||||
function LinkedList() {
|
||||
var length = 0;
|
||||
var head = null;
|
||||
|
||||
var currentNode = null;
|
||||
var Node = function(element){
|
||||
this.element = element;
|
||||
this.next = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user