← All problemsSign in

Cassandra is Playing with Polygons

Cassandra was gifted a regular polygon with $N$ vertices labelled from $1$ to $N$ in clockwise order. She was taught in school that the **triangulation** of a polygon is a set of triangles such that each vertex of each triangle is a vertex of the initial polygon and there is no pair of triangles such that they have any area in common and the total area of all triangles is equal to the area of the

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start