java - Unable to get left/right in TreeNode class -


i working on problem regarding binary search tree using java. name of built-in class in treenode. in solution, shows

enter image description here

however, when did implementation myself, not able "root.left" or "root.right". wondering if missed anything? thanks!

accessing right/left in way imply treenode implemented in way:

public class treenode<t> {     public treenode<t> right;     public treenode<t> left;     public t value; } 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -