K
Kamil Burzynski
[SNIP]
int FindMin( vector<int>::iterator Begin, vector<int>::iterator End ) {
return (Begin != End) ? min( *Begin, FindMin( Begin + 1, End) ) :
*(Begin-1);
}
However, there might be more efficient solutions
And more stable too
That *(Begin-1) seems to be little dangerous, especially when there is
no data (Begin == End)