Case is not covered


  • 0
    W

    S="aBaaDBD" T="BD" is not covered in the test case. It should return "BD".


  • 1
    S

    Problem description has ensured that there is unique solution.

    If there are multiple such windows, you are guaranteed that there will always be only one unique minimum window in S.

    However, according to this test case S="aBaaDBD" T="BD", both DB and BD are available solution.


Log in to reply
 

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