Skip to content

Bug: Test case violates uniqueness assumption in "Minimum Window Substring" problem #4294

Open
@AnishyaV

Description

@AnishyaV

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

Image

In the above screenshot, it can be observed that for the test case:
s="ADOBANCBECODEBAXNC"
t="ABC"

The observed outputs:

"BANC" (expected by judge)

"ANCB" (also valid but rejected)

This contradicts the statement that “the correct output is always unique.”

Suggested fix:

Either update the test case to ensure uniqueness,
Or remove the uniqueness assumption from the problem statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions