Can anyone explain these test cases?


  • 0
    A

    Input:

    "teach", "place",
    ["peale","wilts","place","fetch","purer","pooch","peace","poach","berra","teach","rheum","peach"]

    "ta", "if",
    ["ts","sc","ph","ca","jr","hf","to","if","ha","is","io","cf","ta"]

    "qa", "sq", ["si","go","se","cm","so","ph","mt","db","mb","sb","kr","ln","tm","le","av","sm","ar","ci","ca","br","ti","ba","to","ra","fa","yo","ow","sn","ya","cr","po","fe","ho","ma","re","or","rn","au","ur","rh","sr","tc","lt","lo","as","fr","nb","yb","if","pb","ge","th","pm","rb","sh","co","ga","li","ha","hz","no","bi","di","hi","qa","pi","os","uh","wm","an","me","mo","na","la","st","er","sc","ne","mn","mi","am","ex","pt","io","be","fm","ta","tb","ni","mr","pa","he","lr","sq","ye"]

    Output:
    4
    Expected:
    3

    Which one can be 3?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.