Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ class Tree{
Tree(){
root=null;
}

class TNode{
TNode left;
TNode right;
NodeT data;
TNode(NodeT object){
data=object;
left=null;
right=null;
}
}


public void insertInTree(NodeT node){
Expand Down Expand Up @@ -109,16 +120,7 @@ NodeT breadthFirstSearch(int a){



class TNode{
TNode left;
TNode right;
NodeT data;
TNode(NodeT object){
data=object;
left=null;
right=null;
}
}




Expand Down Expand Up @@ -953,4 +955,4 @@ public static void main(String[] args) {
System.out.println((end-start)+" ms");

}
}
}