adding cs235

This commit is contained in:
dm
2016-04-06 20:46:10 -07:00
parent 8e52ce1982
commit cf99ec6565
178 changed files with 13079 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#include "bst.h"
#include <iostream>
using namespace std;
int main() {
bst b;
b.add(1);
cout << b.root->data << endl;
b.add(-1);
cout << b.root->left->data << endl;
//cout << b.root->right->data << endl;
b.add(4);
cout << b.root->right->data << endl;
b.add(5);
cout << b.root->right->right->data << endl;
b.remove(5);
cout << b.root->data << endl;
}