I have written the code for binary search tree in XCODE in C++, the algorithm is fine, but interface may be wrong -it gives me error no viable conversion from BST to compare::node. Can you fix it. I have defined a public class within BST and called it within main
class BST{
public:
bool isame(node*a, node *b){
if (a == NULL && b == NULL) return true;
else if (a == NULL || b == NULL) return false;
else if ((a->left == b->left) && (a->right == b->right)) return true;
else return false;
}
};
int main(int argc, const char * argv[]) {
compare mybst;
BST t;
[login to view URL](10);
[login to view URL](25);
[login to view URL](95);
[login to view URL](23);
[login to view URL](50);
[login to view URL]();
BST q;
[login to view URL](12);
[login to view URL](27);
[login to view URL](95);
[login to view URL](3);
[login to view URL](50);
[login to view URL]();
cout<<[login to view URL](t,q)<<endl;
return 0;
}
Hi there, I do C++ programming and have good command in data structures and algorithms. I went through your code and I would like to fix this if given the opportunity. Let me know if you are interested so I can have further details.
Hello,
I am expert C++ programmer having 5+ years experience. I am ready to fix this error. I will do professional work. Please contact me. Thank you.
Regards,
Bilal
Hello,
I understand the description of your project. I am extremely interested in working on this project. I can do it perfectly for you. I have all the skills I need for your job.
I will do this project for you as soon as possible. We can discuss more about the project in the chat.
So, I look forward to hearing from you.
Thanks.
Stay home, stay safe and take care.
I'm new to the arena of freelancer but expert in C,C++,DSA You can count on me for this project and others too,so we can discuss the project details further on chat and I am waiting for you?.