Array challenges( Arrays-Target Sum Pairs)

time limit is exceeding …Please check.

Hi
You missed one case
else
if(cs<target)
{
l++;
}
Add this, all test cases will pass

yea it worked thank you so much!!!

1 Like