Grokking Data Structures & Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Reverse a Queue: Unknown Error - Check your Input

Daven L

Oct 17, 2024

Is it possible to get more detailed feedback on these queue questions?

I am getting Unknown Error - Check your Input

I don't know what type queue is, so I tried printing it to see if it is of type Node or if it is a list in order to begin working through this problem.

2

0

Comments
Comments
Steve Ochoa
Steve Ochoaa year ago

Python version is bugged. The type is a deque but this is also different from the solution which uses Queue.

tai
tai a year ago

If you're on JS, they're literally just using an array - not sure why they would put an entire queue class in the comments if you're not meant to use it at all? another question that could use a rework

On this page