Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- __author__ = 'Julio Tentor <jtentor@fi.unju.edu.ar>'
- from _collections import deque
- class SpecialQueue(deque):
- def join(self, other):
- result = SpecialQueue()
- for e in self:
- result.append(e)
- for e in other:
- result.append(e)
- return result
- if __name__ == "__main__":
- pass
Add Comment
Please, Sign In to add comment