[C++] The input is: "aaaaaaa", ["aaaa","aa"], why the expected output is 0 size vector?

  • 0

    Hello guys :)
    The question is about the test case.
    The input is: "aaaaaaa", ["aaaa","aa"], my output is ["aa aa aa","aaaa aa"], the expected output is [] (0 size vector).
    I am confused, should my answer be right? Can anyone explain why the expected answer is expected?

  • 2

    There are 7 a in given string, but your combination are for 6 a.

  • 0

    OMG Thank you :)

Log in to reply

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