Let's dive straight into our topic of discussion i.e. the mighty C++ STL

1. Vector container: Library - #include<*vector*> This is the most widely used STL container!

Untitled

2. Stack container: Library - #include<*stack*> Another popular container that makes our lives easier as many famous interview questions are based on the usage of stack... :)

Untitled

3. Queue container Library - #include<*queue*> Queue can be greately used in the problems related to graphs and hence this should not be ignored as well.

Untitled

Drawback of this container is, it does not allow the operations such as inserting elements at the front and removing elements from the end of the queue, for this purposes "dequeue" STL container can be useful.

4. String container Library - #include<*string*>

Untitled

This container also supports use of '+' operator, for e.g. if str=""; and str+='a'; then str becomes 'a' giving use the power to mutate strings to solve the problems in a much faster and efficient manner.

5. Map container Library - #include<*map*> Must know STL container and to be well rehearsed as well for getting interview ready if you choose C++ as your language!

Untitled