Simple Problem but tough for me if i want it in linear time
Aahz
aahz at pythoncraft.com
Mon Aug 30 08:40:03 EDT 2010
In article <mailman.2294.1282187962.1673.python-list at python.org>,
Tim Chase <python.list at tim.thechases.com> wrote:
>On 08/18/10 21:47, Steven D'Aprano wrote:
>>
>> Frankly, I think the OP doesn't really know what he wants, other than
>> premature optimization. It's amazing how popular that is :)
>
>You see, the trick to prematurely optimizing is to have a good
>algorithm for prematurely optimizing...the real question them
>becomes "How can I optimize my premature-optimization algorithms
>to O(1) instead of O(newsgroup)?"
>
>:-)
>
>-tkc
>
>PS: I'm not positive, but O(newsgroup) may asymptotically
>approach O(log n) if the question is well formed, but O(2^n) if
>flaming, indentation/line-length preferences, the meaning of OOP,
>SQL-parameter escaping, McNugget combinations, or suggestions that
>Python is "just a scripting language" are involved...
+1 QOTW
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"...if I were on life-support, I'd rather have it run by a Gameboy than a
Windows box." --Cliff Wells
More information about the Python-list
mailing list