Skip to content

Bug Report: Output comparison fails due to whitespace-only differences #5371

@mehmet-suer

Description

@mehmet-suer

Bug Report for https://neetcode.io/problems/queue

Steps to Reproduce
1. Implement Deque according to the provided interface (no custom printing/formatting).
2. Run the sample test case shown in the UI.
3. Observe “Your Output” vs “Expected output”.

Actual Result
Judge marks the solution as incorrect even though:
Your Output: [true,null,false,null,20,10,-1,null,30,true]
Expected output: [true, null, false, null, 20, 10, -1, null, 30, true]

The only difference is whitespace after commas.

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