3 ms·
And, just for fun, here's my answer for problem 1 there: http://www.effectedcause.com/blog/?p=228 http://www.effectedcause.com/blog/?p=228 Of course, you could
by jimmyjim 15y ago
And, just for fun, here's my answer for problem 1 there: http://www.effectedcause.com/blog/?p=228 http://www.effectedcause.com/blog/?p=228
Of course, you could recognize that it's a geometric series... and (3^15 - 1) / 2 would give you the answer, but what fun is it if you don't even get to use a simple for loop when you have a perfectly good opportunity to do so. :)
- warmfuzzykitten 15y agoWhat's your simple for loop answer to problem 2? :)