Workd break :: Input: "ab", ["a","b"] Output: ["a","b"] Expected: ["a b"] whats the difference ?


  • -1
    V

    I have been getting this , test case as failed.
    But expected output & program output looks the same. Its happening for one other problem as well.

    Am I missing something ?

    Input: "ab", ["a","b"]
    Output: ["a","b"]
    Expected: ["a b"]

  • 0
    W

    We have to return set of all possible sentences formed. Here "a" and "b" are valid words. We have to convert given string "ab" into a valid sentence, which is "a b"


Log in to reply
 

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