View RSS Feed

Algorithm and Data Structure

Algorithm and data structure examples in Java.

  1. Java Deque Implementations

    by , 02-19-2012 at 08:07 AM
    Collection interface subtype is DeQue interface. In DeQue interface, all of the Collection interface methods are present.

    DeQue interface instance can be created. This interface’s concrete implementation is required to do so. In Collections API, these DeQue implementations are present. Among them, you may select to use.

    • java.util.LinkedList
    • java.util.ArrayDeque


    LinkedList is considered to be a pretty queue implementation.

    In an array, ...
    Tags: java deque Add / Edit Tags
    Categories
    Queue