Thursday, November 22, 2012

Identify all the pythagorian triplets in the given array.

2 , 4 -> 4 + 16 = 20
1, 3 -> 1 + 9 = 10

In efficient way

No comments:

Post a Comment

Post a Comment