Skip to content

Bug Report for implement-stack-using-queues #5918

@wagerfield

Description

@wagerfield

Bug Report for https://neetcode.io/problems/implement-stack-using-queues

When using TypeScript to solve queue related questions, the Queue class is not defined or in scope of the code editor:

Image

The code compiles and the Queue class is instantiated as seen from logging a Queue instance to stdout:

Image

Since Queue is not defined at the type-level in the code editor, it's very difficult to know what it's API is since it does not appear to be documented anywhere? I can reverse engineer the API from the Solutions, but that would mean jumping the gun and looking at the solutions before attempting to solve the question first.

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