72 karma · joined January 29, 2008
Win now stands for the-opposite-of-lose, instead of Windows.
Capitalism, man…
Still, kudos to the author for coming up with this experiment.
var dest = 'apple';
while (dest.length < 100000) {
var out = '';
for (var i=dest.length-5, end=i+10; i<end; ++i)
out += dest[i];
dest += out;
}
That brought the time from about 4 seconds to a more respectable 90 msec.The goal was to build a bridge that could transport marbles from one side of a 12-inch square to another without anything touching the surface within the square. With a meager set of supplies (postcard, paperclip, rubber band, etc), we scratched our heads for a bit. But in a flash of inspiration, we built a bridge spanning two adjacent sides.
We thought it might've been too clever, so we asked the judges to reiterate the rules. They didn't mention the opposite side. Just another side.
We took home 1st prize.
Check the "Know what you can safely spend" blurb under The Product section. It seems like it's in the ballpark of your grand vision. You can allocate spending/saving buckets, and it will tell you — based on your income/spending streams — how much discretionary money you have at any given point. Seems really handy.