In the problem statement , it says in the 4th point as
Each letter in pattern must map to a word with length that is at least 1.
So , when we input "aaa" "aa aa aa aa" =>
it should return true since every letter mapped ..
Now , if I test it with "aaa" "aa aa" => LeetCode OJ returned
In reality , even here every letter mapped , only problem is last letter in pattern did not explicitly find an index in "aa aa" .
In my opinion , the problem statement is
In that case "", "beef" should return true since no letter is unmapped but OJ returns false.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.