Download Getting min/max in a sequence

Getting min/max in a sequence

Getting min/max in a sequence

License :
Open Source
File Size :
1KB
Language :
English
Publisher :
Edvard Majakari
Last Updated :
2010-08-27
OS Support :
Windows , Linux, Mac OS, BSD, Solaris
Downloads :
Total : 2 , Last Week : 0
Download
Get a faster PC in 3 easy steps

Publisher's Description

“It is useful to know what is the smallest value in a sequence.”

By Edvard Majakari about Getting min/max in a sequence

Sometimes it is useful to know what is the smallest value in a sequence greater than (or equal to) some other value. Eg.

max_lt([2, 3, 5, 7, 11], 6) would be 5, because 5 is greatest value in the list which is also less than 6. Following the same lines method call min_gt([3, 5, 6, 10, 12], 6) would return 10, because 10 is the smallest value in the list greater than 6. The following four simple methods implement min_gt, min_le, max_gt and max_ge, but the input must be sorted for them to work.

However, Greg Jorgensen's suggestion is much more clever. No need for sorting, just use list comprehensions with min/max.
System Requirements :
(Not available)
Recent changes :
(Not available)

Getting min/max in a sequence Screenshots

Currently no screenshot.

Similar to Getting min/max in a sequence

Getting th permutation of a sequence
This function, given a sequence and a number n as parameters....
min/max "peaks" with Numeric
Given a large one-dimensional array, break it into blocks of contstant length...

Getting min/max in a sequence Review and rate

  • Review and rate
  • Just rate
    • Review needs to contain at least 100 characters ,current 0 characters

    • One item per line.

    • One item per line.

    • Minimum 4 maximum 20 characters

    • Please enter a valid email address to receive our confirmation email.

      We will not show your email address to public.

    Your rating of Getting min/max in a sequence :

    Please fill in all fields

    • Usability:

    • Stability:

    • Installation:

    • Functionality:

    • Appearance:

    Click here to refresh
You are not allowed to share serial numbers, cracks, etc. or link to pages that contain them. If you do, your user account will be deleted, your IP address logged and legal action will be taken.
User Rating
4.0/5

Click the stars to rate

( 1 rating , 0 review )
A FREE client from Apponic.com
  • Keep your apps up to date
  • Plus choice for installed apps
  • Newest and most popular apps
  • Essential apps
Review Python
  • Top Reviewed
  • New Reviewed
Searches Related to Getting min/max in a sequence

getting min max in a sequence |

Tags Related to Getting min/max in a sequence

Getting min/max in a sequence |

Python Essential Downloads
Go Left Go Right