|
-
July 2nd, 2010, 11:19 AM
#5
Re: Please I want a solution to this question؟
oh yes
i dont main for loop
I do not remember the text of a good question
****************************************
public int Evaluate(s,t){
for {
if(s==0 || t==0)
return 0;
}
else if{
y=Evaluate(s,t-1);
return s+y;
}
}
****************************************
By using stack to find
z=Evaluate(2,2)=???????????????????
Dont use Recourion
The solution described in the link http://www.4shared.com/photo/0Nu72OYi/9999999999.html
Is the correct solution, as told by Dr.
Thus, the question was almost
Thank you for your interest
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|