from here, i know that we can get the argmax of a `vector like this: vector<int> v{ 3, 1, -14, 1, 5, 9 }; vector<int>::iterator result = max_element(v.begin(), v.end()); int argmaxVal = distance(v.begin(), result); // argmaxVal = 5 because v[5] = 9 How do i get the argmax of vector from index 2 to 4? ..

## Recent Comments