Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python-Min/max of seq WITHOUT min() and max()

Name: Anonymous 2007-02-08 21:02

Given a sequence such as x = [5, 9, 0, -14], I need to find the min and max without sorting the sequence or by using min() and max().  I've been instructed to use loop constructs, but I can't figure out how to do so.  Help is greatly appreciated.

Name: Anonymous 2007-02-10 6:25

>>10
It's not a hypothesis, it's a block of code. Since it's a block of code, it can't possibly lack logical argumentation (any more than a block of wood can lack logical argumentation), hence it's not an ipsedixitism either.

tl;dr version: FAIL!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List