## Efficient methods of searching vectors for specific int's that meet a condition?

I'm trying to write an efficient operation to search through a vector, specifically identify the existence of three int's (A1, A2, A3) where A1 > A2 && A2 < A3.
So given A {5,3,1,2,3}, the operation with output: [3,1,2], [3,2,3],[5,1,3], ...

more
»