Stack - this is an ADT collection of elements with a specific remote order = LIFO (last-in-first-out), allows you to duplicate,
Queue - this is an ADT collection of elements with a specific remote order = FIFO (first-in-first-out), allows you to duplicate,
LinkedList is an implementation of a list,
Set - ADT , ,
Bag - ADT , .
, , , Collection.
, , Bag, Set.
, , List.
, ( ), Queue.
, ( ), Stack.
: Java LinkedList - , , , , , , (add ~ addLast ~ push, peekLast, removeLast ~ pop), . , Stack, , peek Queue , ( ). LinkedList " " Deque.
Bag remove(Object) , e. . Bag, . get(int) . get(int) e. . Bag , O (n/2), - (-) , O ( 1).
Bag , . , .
, , Set Bag. , , Stack Queue, Bags . Bag Stack Queue, api .
- ( + ). , Bag, .