Back to course home
0% completed
Vote For New Content
I believe the first solution for Triplets with Smaller Sum (medium) in the two p...
Isam Nagi
Mar 11, 2022
I believe the first solution for Triplets with Smaller Sum (medium) in the two pointer section, has an error. I believe the "count" (which is the result to return) is describing the total of the triplets in value rather then the count of triplets that pass the test.
0
0
Comments
Comments
Design Gurus4 years ago
"count' is the total number of triplets that pass the test.
Try different inputs, it should produce correct results.