Hi everyone,
I'd like to ask you all to help me with this two questions and I've been faced recently,
1.What would be the algorithm which takes the pointers of two Binary Search Trees roots, if equal returns true if not FALSE. (both BSTs are the same as well as the corresponding nodes.)?
-
how many times does " cout " execute?
int m=0;
for(int i=1; i<=n; i++)
{
m=m+i;
for(int j=1; j<=m ; j++ )
cout << j;
}
thank you all for you helps and replies in advance.