Skip to content

Instantly share code, notes, and snippets.

@diogojorgebasso
Created May 11, 2022 12:32
Show Gist options
  • Save diogojorgebasso/54ae863d3bcaa4b55fbd2801ccc0ea62 to your computer and use it in GitHub Desktop.
Save diogojorgebasso/54ae863d3bcaa4b55fbd2801ccc0ea62 to your computer and use it in GitHub Desktop.
Define uma fila em Python
from collections import deque
Q = deque() #define a fila
Q.append(3)
Q.append(5)
Q.popleft() #desinfileira o último (3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment