This preview shows page 1. Sign up to view the full content.
Unformatted text preview: class Queue: def __init__(self) : self.queue = def enqueue(self, object) : self.queue.append(object) def dequeue(self) : tmp = self.queue del self.queue return tmp def size(self) : return len(self.queue)...
View Full Document
This note was uploaded on 03/07/2010 for the course CS 6913 taught by Professor Torsensuel during the Spring '10 term at NYU Poly.
- Spring '10
- Search Engines