Re: [PHP] PHP Brainteasers 2011

2011-05-23 Thread tedd
At 11:29 AM -0400 5/23/11, Daniel Brown wrote: On Fri, May 20, 2011 at 12:55, Marc Guay wrote: I imagine this one's been done before, but maybe not in the same way I believe it was, but not quite the same, you're right. "If at first you don't succeed, try, try again." "If

Re: [PHP] PHP Brainteasers 2011

2011-05-23 Thread Daniel Brown
On Fri, May 20, 2011 at 12:55, Marc Guay wrote: > I imagine this one's been done before, but maybe not in the same way I believe it was, but not quite the same, you're right. "If at first you don't succeed, try, try again." Nice one, Marc. > >        $result = succeed();

Re: [PHP] PHP Brainteasers 2011

2011-05-20 Thread Alex Nikitin
what's the scope? I have some brain-teasing functions i've been working on, but they are far from bulletproof, but here is an example function float_int($significand) { $sign = ($significand<0) ? true : false; $significand = abs($significand); $drep = (decbin( (int) $significand));

[PHP] PHP Brainteasers 2011

2011-05-20 Thread Steve Staples
Just wondering if anyone has done anything for this? I personally haven't had any "ideas" come to mind yet... Looking forward to seeing them!!! (once they come) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Brainteasers 2011

2011-05-20 Thread Marc Guay
I imagine this one's been done before, but maybe not in the same way -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php