Wrong Test Case for strStr() or I am missing something

Implement strStr() Test Case 51 has input as
"a" - Haystack
" " - Needle
and expected out put is "0" . Shouldn't it be -1 ?

Comments (1)