in the code snippet:
if(this.size>1){
this.tail.next=nn
}
here what will nn describe?
is nn the address? if then, how? like nn describes a node and not address…this i am not able to understand
in the code snippet:
if(this.size>1){
this.tail.next=nn
}
here what will nn describe?
is nn the address? if then, how? like nn describes a node and not address…this i am not able to understand
@kavit nn is node and since everytime we make a node we create object and that object has address that’s why nn is called a node but it store a address.