Zu dieser Karteikarte gibt es einen kompletten Satz an Karteikarten. Kostenlos!
2
TreeNode
public class TreeNode {
int value;
TreeNode right;
TreeNode left;
public TreeNode(int value, TreeNode right, TreeNode left){
this.value = value;
this.right = right;
this.left = left;
}
public Class Tree {
TreeNode root;
public boolean isEmpty(){
return root == null;
}
int value;
TreeNode right;
TreeNode left;
public TreeNode(int value, TreeNode right, TreeNode left){
this.value = value;
this.right = right;
this.left = left;
}
public Class Tree {
TreeNode root;
public boolean isEmpty(){
return root == null;
}
Karteninfo:
Autor: hristiana86
Oberthema: Informatik
Schule / Uni: HS
Ort: Mannheim
Veröffentlicht: 14.06.2010