Category: Data Structure

Data Structure and Files program such as stack ,queue,linked list

Binary Search Tree program in java

Binary Search Tree program in java

import java.util.Scanner; class TreeNode { TreeNode left,right; int info; public TreeNode(int data) { info=data; left=null; right=null; } } class Operations { TreeNode ptree,p,q; Operations() {p=q=ptree=null; } public void preorder(TreeNode ptree) { if(ptree!=null) {System.out.print(ptree.info +...