I have come across a problem about the determination of triangle, it says:
Given a sorted integer array(length n), determinate whether you could build a triangle by choosing three integers from the array, the answer is "yes" or "no".
A naive solution is by scanning all the possibilities but it turn out to be O(n^3), seems it will be C(n, 3) possibilities.