void foo1()
{
if(A < B)
Then { }
else
if(C < D)
then foo2()
A < B 25% of the times and C < D 75% of the times and foo1 () is called
5000 times
{
if(A < B)
Then { }
else
if(C < D)
then foo2()
}
How many time foo2 () would get called givenA < B 25% of the times and C < D 75% of the times and foo1 () is called
5000 times
No comments:
Post a Comment