neetcode-gh/leetcode

Bug Report for minimum-window-with-characters

Closed this issue · 1 comments

Bug Report for https://neetcode.io/problems/minimum-window-with-characters

Missing test case:

Input:

s="ADOBANCBECODEBAXNC"
t="ABC"

Expected output:

"BANC"

My first version passed the submission tests, but I realized that my code didn’t check whether the new substring was shorter during the update.

Image

Here is the screenshot of the test result using my initial version and the test case provided above.
Image

Thanks for the feedback! The testcase has been added.