I\'m trying to solve the following algorithmic problem:
I\'m given an array (it could be a standard C/C++ array, a vector >
C/C++
vector >