You are given a convex polygon with values[i].
A triangulation divides the polygon into values[i] values[j] values[k]. The total score of a triangulation is the sum of the scores of all its constituent triangles.
Return the minimum possible total score among all triangulations of the polygon.
Constraints:
n == values.length
n
values[i]
You are given a convex polygon with values[i].
A triangulation divides the polygon into values[i] values[j] values[k]. The total score of a triangulation is the sum of the scores of all its constituent triangles.
Return the minimum possible total score among all triangulations of the polygon.
Constraints:
n == values.length
n
values[i]