if I cast node1 as <E> will it make a difference?
Type: Posts; User: bagalakadaka
if I cast node1 as <E> will it make a difference?
ok so this is what i have so far. does it make sense??
Node node1 = root;
boolean result = false;
if(root == someElement)
return true;
//go through left
if(node1.left != null){
I'm pretty sure it's contained in a node.
done! thanks
Hi, I'm trying to figure out how to do this contains method. everything that's in the method is my code. My thinking is: start at root and go in Inorder traversal and use .equals(). Should I even do...