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:
The code compiles and the Queue class is instantiated as seen from logging a Queue instance to stdout:
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.
Bug Report for https://neetcode.io/problems/implement-stack-using-queues
When using TypeScript to solve queue related questions, the
Queueclass is not defined or in scope of the code editor:The code compiles and the
Queueclass is instantiated as seen from logging aQueueinstance tostdout:Since
Queueis 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.