One test case is no running how to remove condition when a[i]+*l+*r=target and *l is automatically tkaing 0 vlaue when a[i]+*r==target

@kailash_01 your one test case is failing because you have run for loop upto n but you have run loop upto less than n-1 as last element is value of r ,also inside while loop the code you have written that is three conditions will handle the condition itself when l is 0 as only these three cases can be there.So just run for loop upto less than n-1 ,it will work fine.
Hope you get it.
Happy coding :slight_smile: