# Project Euler #94: Almost equilateral triangles

# Project Euler #94: Almost equilateral triangles

kitchent + 0 comments Pythagorean triples with up to is a bit insane. I could manage . Still looking for a way out.

**EDIT**: You may try to list some of the valid , , and its perimeter to look for a pattern. Don't look further if you don't want to spoil the fun.The sum of two consecutive perimeters is very close to the isosceles side of the next triangle. Experiment with it.

**EDIT 2**: You may also take a look at Tree of primitive Pythagorean triples. The parent-child relationship is especially useful here. If you don't know how Pythagorean triples can be used for this problem, look up Isosceles Heronian triangles.Yet another approach I've seen from others is to solve Pell's equation.

denmatfoton + 0 comments Use Pell's equation from the problem #66! Sould be simple.

uditnayak + 0 comments Can you explain second test case!! How output is 66!!!!

Aniket_Gaikwad + 0 comments Can somebody tell the minimum complexity of this problem, my solution is O(N) due to which it is getting timed out after test case 2

vinodkumar9576 + 0 comments Can anyone explain what the problem mean?

Sort 8 Discussions, By:

Please Login in order to post a comment