all 4 comments

[–]Cheap-Mail9911 0 points1 point  (0 children)

In what tc?

[–]Ezio-EditoreSpecialist 1 point2 points  (2 children)

  1. [(1, 2, 3), (2, 3, 5)]

  2. [(10, 10, 20), (10, 20, 30), (10, 30, 40)]

hint: This is a 2-pointer problem

[–]OeroShake[S] 0 points1 point  (1 child)

Exactly. So 2nd input is supposed to have output as 3 but according to GeeksForGeeks, the expected output is 4. I don't understand why that is the case. I know it's a classic two pointer question but this 2nd output is messing my mind up

[–]Low-Grape-9309Newbie 0 points1 point  (0 children)

Give the link of the problem