How many diagonals does a twenty-sided polygon have?
A convex polygon has 20 sides.
How many diagonals does it have? Find the general formula for n sides and explain it in two different ways, then use the same style of counting to say how many points inside the polygon are crossings of two diagonals, assuming no three diagonals meet at a point.
Show a hint
Every diagonal joins two corners. Count the pairs of corners, then remove the pairs that are joined by a side rather than a diagonal.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
The angles of a twenty-sided polygon1, 2, 4, 8, 16, ... and the pattern that breaksHow many diagonals does a cube have?Fifty-one ants and a small square cardHandshakes at a party of ten couples
All questions →