Commit b4e0004

mo khan <mo.khan@gmail.com>
2020-08-25 18:57:09
add yesterdays problem of the day
1 parent 0ed0c36
Changed files (1)
2020
2020/08/24/README.md
@@ -0,0 +1,12 @@
+│   Given a list of numbers, find if there exists a pythagorean triplet in
+│   that list. A pythagorean triplet is 3 variables a, b, c where a^2 + b^2
+│   = c^2
+│   Example:
+│Input: [3, 5, 12, 5, 13]
+│Output: True
+│
+│   Here, 5^2 + 12^2 = 13^2.
+│def findPythagoreanTriplets(nums):
+│  # Fill this in.
+│print findPythagoreanTriplets([3, 12, 5, 13])
+│# True