Explicitly and without apology a marketing vehicle MaryMaryQuiteContrary

Monday Jun 21, 2004

hey guys,

we've still got Friday Free Stuff on the table for the person who answers this:

What does the following function compute?

    // Assumes val is odd
   static int mysteryFunction(int val) {
       int t = val;
       t *= 2 - val*t;
       t *= 2 - val*t;
       t *= 2 - val*t;
       t *= 2 - val*t;
       return t;
   }

The question courtesy of  Friday Free Stuff sponsors "Click and Hack, the type-it brothers" .....

...aka Dr. Joshua Bloch and Dr. Neal Gafter. (Did you know they have two JavaOne sessions: One, Two.)

The prize (Duke dolls) ...

... courtesy of Mary.

 

Friday Free Stuff is not a contest. Mary is giving away something she personally owns to somebody she picks. She pays for shipping. Sun employees can play but can't "win."

mary

Comments:

Post a Comment:
Comments are closed for this entry.