- 1

Nodes explanation

In implementation of stack i noticed a key word Node i just want to know what does it mean in java and how can we use it you can see the code link below https://code.sololearn.com/cYN0MrV1JFgd/?ref=app

6th Apr 2019, 11:43 AM
Rajb957
Rajb957 - avatar
1 Réponse
+ 3
Raj Bunsha in data structure every element is called as nodes. It's just an variable or class name in above code of yours it is represented as an class which has an value and it's neighbors value like in your code left node is an neighbor. In simple explanation an node is an thing which is stores two things one the name of that variable and address of that variable. _____________________________ | node name | node address | |_____________|______________| |__________| |__________| |__________|<-------Top variable for | node 2. | insert in the |__________| Stack | node 1. | |__________|
6th Apr 2019, 1:23 PM
MsJ
MsJ - avatar