One test case seems to be wrong.
The array A: [1, 1, …., 1], target = 2
It should return False, but it return True. My language is Python. Thanks!
I believe you are mentioning the last test case, which looks like it has all 1's in it, but in fact there is a '2' in it.
ok, thanks, let me try again...
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.