Try to keep it simple.
- Can you iterate over the pair sums in increasing order ?
- Can you iterate over the original number squares in increasing order ?
- Can you "combine" both iterations described above ?
Regards,
Zachm
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Thread: Finding Pythagorean TriplesThreaded View
|
Click Here to Expand Forum to Full Width |