--- slug: /silver/containers title: "Containers" author: Unknown order: 2 prerequisites: - - Bronze - Containers --- Containers from C++ standard template library (STL) - CPH 4 - Linear - Queues / Deques - C++ Lists? - Linked List - Stacks - Log - Priority Queues - BST / TreeSet / TreeMap (Python doesn’t have log n map) - Sets / Maps - Multiset (F FOR JAVA) (just teach a workaround or smthn ig) TreeMap (erase by value pitfall) - Custom comparator (prerequisite for basically all silver topics in Java) - HashSets / HashMaps - ex? (from my github) * Types * Set, Multiset, Unordered Set * Map, Unordered Map (Hashmap) * see STL demo * Queue, Deque, Linked List * Priority Queue (Heap) * Vector * Stack * Tutorial * CPH (4, Data Structures) * [C++ Reference](http://www.cplusplus.com/reference/stl/) * [CPC.2](https://github.com/SuprDewd/T-414-AFLV/tree/master/02_data_structures) * Problems (sorted by length) * [Beautiful Triplets](https://www.hackerearth.com/practice/algorithms/greedy/basics-of-greedy-algorithms/practice-problems/algorithm/mancunian-and-beautiful-triplets-30968257/) [](54) * [Polycarp's Phone Book](http://codeforces.com/contest/860/problem/B) [](56) * [Jury Marks](http://codeforces.com/contest/831/problem/C) [](67) * [Mahmoud & Ehab & Function](http://codeforces.com/contest/862/problem/E) [](74) * [Karen & Cards](http://codeforces.com/contest/815/problem/D) [](86) * [Tournament](http://codeforces.com/contest/878/problem/C) [](106) [Blowing up Unordered Map](https://codeforces.com/blog/entry/62393) https://docs.google.com/document/d/1HaqUhVB2Ou3ZK4WRjHd738nof4yvLGfrjZFkCxIQP1A/edit?usp=sharing