I have a vector of integers. I wanted to take out the minimum and maximum numbers from the set.
Is there an easy way to do this? Or do I need to sort the vector first? Is there a sort function for vectors? So I can just pop the "begin" and "end".