i have used two pointer method it takes care of negative integers even though it couldn’t pass the last test case, may I know what the corner case is?
Last test case couldn't pass
corrected your code:
i have used two pointer method it takes care of negative integers even though it couldn’t pass the last test case, may I know what the corner case is?
corrected your code: