Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

what is the non-recursive stack equivalent of the following method?

807588Feb 28 2009 — edited Mar 1 2009
what is the non-recursive stack equivalent of the following method?
boolean isTreeFull(TreeNode node) {
	if (node == null) return true;
	if (height(node.left) != height(node.right)) return false;
	return isTreeFull(node.left) && isTreeFull(node.right);
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 29 2009
Added on Feb 28 2009
17 comments
437 views