Arrays - Target sum pairs


why there is TLE?

You should update r and l when target sum is acheived!!

You are right. Thank you