摘要:
点击查看代码 //Check if a given binary tree is BST #include<iostream> #define MIN -999999 #define MAX 999999 struct node { int data; node* left; node* right 阅读全文
摘要:
点击查看代码 //Binary tree traversal-- beadth-first and depth-first #include<iostream> #include<queue>//STL using namespace std; struct node { int data; nod 阅读全文
摘要:
点击查看代码 //Binary tree traversal-- level-order traversal using queue #include<iostream> #include<queue>//STL using namespace std; struct node { int data 阅读全文