This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| #include "TreeNode.h" | |
| void insertNodeHelper( TreeNode< int > **ptr, int arr[], int len) | |
| { | |
| cout<<len<<endl; | |
| if (len == 1) {*ptr = new TreeNode< int >( arr[0] ); cout<<"len 0"<<endl;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "bigDecimal.h" | |
| #include <iostream> | |
| #include <sstream> | |
| #include <stack> | |
| #include <math.h> | |
| #include <cstring> | |
| using namespace std; | |
| // helper functions | |
| bool isPositive(Node* b) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "bigDecimal.h" | |
| #include <iostream> | |
| #include <sstream> | |
| #include <stack> | |
| #include <math.h> | |
| using namespace std; | |
| // helper functions | |
| bool isPositive(Node* b){ | |
| if(b->data == '-') return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "bigDecimal.h" | |
| #include <iostream> | |
| #include <sstream> | |
| #include <stack> | |
| #include <math.h> | |
| using namespace std; | |
| // helper functions | |
| bool isPositive(Node* b){ | |
| if(b->data == '-') return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * bigDecimal.h | |
| */ | |
| #ifndef BIGDECIMAL_H_ | |
| #define BIGDECIMAL_H_ | |
| #include <iostream> | |
| #include <string> | |
| #include <sstream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "bigDecimal.h" | |
| #include <iostream> | |
| #include <sstream> | |
| #include <stack> | |
| using namespace std; | |
| // helper functions | |
| bool isPositive(Node* b){ | |
| if(b->data == '-') return false; | |
| return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <sstream> | |
| using namespace std; | |
| struct Node | |
| { | |
| char data; | |
| Node* next; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x45A49943f43b912b70C2fDAC538719057e4Af7dA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0xF065BB606f3CFe37e0DaA4C3d9E715F9e92edA3A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x459631287154342Fa7C50433e133320fA05042E4 |