Equilateral Triangles using Toothpicks

Create an equilateral triangle using three toothpicks.

Now you have to add three more equilateral triangles of the same size as the original.
What is the minimum number of toothpicks required?

Answer is a integer. Just put the number without any decimal places if its an integer. If the answer is Infinity, output Infinity.

Feel free to get in touch with us if you have any questions

Hints
  • Solution Approach
  • Complete Solution
2940 successful submissions.
Click here to jump start your coding interview preparation