Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. class queue:
  2.     def __init__(self):
  3.         self.t = []
  4.         self.poc = 0
  5.        
  6.     def pop(self):
  7.         self.poc += 1
  8.    
  9.     def push(self, x):
  10.         self.t.append(x)
  11.        
  12.     def front(self):
  13.         return self.t[self.poc]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement