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

0% completed

Vote For New Content
Leopoldo Hernandez
I'm expecting a queue instance that uses enqueue() and dequeue()

Leopoldo Hernandez

Feb 9, 2024

However... this doesn't have them and uses arrays instead. What is the point of teaching stacks and queues?

1

0

Comments
Comments
Leopoldo Hernandez
Leopoldo Hernandez2 years ago
class Node: def __init__(self, data): self.data = data self.next = None class Queue: def __init__(self): self.rear = None self.front = None self.count = 0 def size(self): return self.count def i...

On this page