Monday, November 7, 2011

Yo Mamma

4 comments:

Napoleon Bonerpants said...

I think that 3 out of the 5 bloggers fully understood that joke.

Napoleon Bonerpants said...

Though I'm not sure why a recursive function would be needed for a calculation of my mother's mass. So I guess I only half understand it.

Dementor said...

public double computeMass(VisceralFatPile yourMom){
if(yourMom.getSize() == 1){
return yourMom.popBelly().getWeight();
}else{
return yourMom.popBelly.getWeight() +
computeMass(yourMom);
}
}

Although I agree that iterating over the pile of fat would make more sense.

Dementor said...
This comment has been removed by the author.