Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report for minimum-window-with-characters #4006

Open
ccalibre opened this issue Apr 6, 2025 · 0 comments
Open

Bug Report for minimum-window-with-characters #4006

ccalibre opened this issue Apr 6, 2025 · 0 comments

Comments

@ccalibre
Copy link

ccalibre commented Apr 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant