Is it possible to find the second maximum number from an array of integers by traversing the array only once?
As an example, I have a array of five integers from whi
Can't we just sort this in decreasing order and take the 2nd element from the sorted array?