--- In [email protected], "harshal54321" <[EMAIL PROTECTED]> wrote:
>
> hello friends,
> I am stuck at some problems,here are these:
>  
> 1)Write a program in 'c' language to merge the contents of
> two binary search trees into one.

Depends on how you stored those binary trees. What code do you have so
far?

> Also, calculate the time and space complexities of your program?

That's not for us but for you.

> 2) Write c++ program to creat functions that calculate the
> value of x^n. Assume that X=|=0, n=|=0.

What does "=|=" mean? Not equal to? Greater than? Anything else?
In general, please search Wikipedia for "Egyption multiplication". The
same principle can be used to calculate arbitrary powers of numbers,
not only multiples.

Again, if you have trouble with your code, post your code here. Or to
be exact, post the smallest piece of code that shows exactly what
problem you have.
Together with statements about OS and compiler you are using.

Regards,
Nico

Reply via email to