Codeforces EDU Two pointer problem issue
Getting error on 2nd testcase I am not able to figure out somebody help

Problem Link ?

Link to the problem: C. Number of Equal

1 Like

Increase the j pointer while A_j is less than B_i. Consider this test-case.

2 2
1 4
3 4

Correct answer should be one. code

1 Like