Topic: Queue
Questions Successfully Completed: 1
1) Dequeue Traversal | Easy |
public static void printDeque(ArrayDeque<Integer> deq)
{
Iterator iterator = deq.iterator();
while (iterator.hasNext()) {
System.out.print(iterator.next() + " ");
}
System.out.println();
}
Thank you for reading:)