Given an array of distinct integers, count all unique triplets (a, b, c) such that the sum of any two numbers equals the third number in the triplet (i.e., a + b = c).
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.