deque and randomized queue

80 percent