Implementato Binary Tree. Bisogbna testarlo. da implementare il tostring
This commit is contained in:
@@ -30,13 +30,14 @@ public class LinkedTreeTest {
|
||||
System.out.println(a.isEmpty());
|
||||
System.out.println(a);
|
||||
|
||||
a.addChild(100,a.children(a.root()).iterator().next());
|
||||
|
||||
System.out.println(a.height());
|
||||
|
||||
a.remove(a.children(a.root()).iterator().next());
|
||||
System.out.println(a.size());
|
||||
System.out.println(a.isEmpty());
|
||||
System.out.println(a);
|
||||
|
||||
System.out.println(a.height());
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user