DescriptionCodepackage mainimport ( "bufio" "os" "strconv" "strings")type Deque struct { head *DequeNode tail *DequeNode size int}type DequeNode struct { data int next *DequeNode prev *DequeNode}var ( deq *Deque = new(Deque))// 1: 정수 x를 덱의 앞에func push_front(x int) { newNode := new(DequeNode) newNode.data = x if deq.size == 0 { deq.head = newNode deq.tail = newNode } else { newNode.next = deq..