Top "Min" questions

Minimum value.

Getting the index of the returned max or min item using max()/min() on a list

I'm using Python's max and min functions on lists for a minimax algorithm, and I need the index of the …

python list max min
MIN and MAX in C

Where are MIN and MAX defined in C, if at all? What is the best way to implement these, as …

c max min c-preprocessor
Remove NA values from a vector

I have a huge vector which has a couple of NA values, and I'm trying to find the max value …

r max min na missing-data
How can I get the max (or min) value in a vector?

How can I get the max (or min) value in a vector in C++? I have seen a few solutions …

c++ vector max min
Use of min and max functions in C++

From C++, are min and max preferable over fmin and fmax? For comparing two integers, do they provide basically the …

c++ c max min
Get the key corresponding to the minimum value within a dictionary

If I have a Python dictionary, how do I get the key to the entry which contains the minimum value? …

python dictionary min minimum idioms
What's the best way to select the minimum value from several columns?

Given the following table in SQL Server 2005: ID Col1 Col2 Col3 -- ---- ---- ---- 1 3 34 76 2 32 976 24 3 7 235 3 4 245 1 792 What is the best way …

sql sql-server tsql sql-server-2005 min
SQL: Group by minimum value in one field while selecting distinct rows

Here's what I'm trying to do. Let's say I have this table t: key_id | id | record_date | other_cols 1 | 18 | 2011…

sql group-by max distinct min
Obtain smallest value from array in Javascript?

Array justPrices has values such as: [0] = 1.5 [1] = 4.5 [2] = 9.9. How do I return the smallest value in the array?

javascript arrays min
Python find min max and average of a list (array)

I am having hard time to figure out how to find min from a list for example somelist = [1,12,2,53,23,6,17] how can …

python arrays max min