Re: Finding if a number is in the range
| From: | MaD dUCK | Date: | Fri, 18 May 2001 01:53:12 +0000 |
| Subject: | Re: Finding if a number is in the range | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53366@lists.php.net to get a copy of this message | ||
also sprach Joseph Blythe (on Fri, 18 May 2001 11:12:23AM +0930):
> How do I find if a number is in a range example:
assuming that the ranges are continuous, make an array of the first
number for each range and then implement a custom binary search for
O(lg n) performance.
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr
"<*> mailto:" net@madduck
--
"i wish there was a knob on the tv to turn up the intelligence.
there's a knob called 'brightness', but it doesn't seem to work."
-- gallagher