Monday, November 7, 2011

Yo Mamma

4 comments:

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

    ReplyDelete
  2. 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.

    ReplyDelete
  3. 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.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete