Participate in Codex, Test Your Skills & Win BIG

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

  • Solution Approach
  • Complete Solution


Click here to start solving coding interview questions