Data structures and algorithms problems in C++ using STL

Google Translate Icon

The Standard Template Library (STL) is a library for the C++ programming language. The STL provides many useful algorithms and containers. The Containers are objects that store data. We have taken the help of the following containers to solve mentioned problems:

vector, list, queue, priority_queue, stack, set, map, multimap, unordered_set, unordered_multiset, unordered_map, unordered_multimap

 
We have avoided using STL algorithms as the main purpose of these problems is to improve your coding skills and using in-built algorithms will do no good. Nevertheless, we have still used the following common algorithms at several places:

minmaxswapsortnext_permutationbinary_searchrotatereverse

Priority Queue (Heap):

Graphs:

Array:

Matrix:

Strings:

Binary Tree:

Dynamic Programming:

Linked List:

Miscellaneous:

Rate this post

Average rating 4.83/5. Vote count: 109

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Tell us how we can improve this post?




Thanks for reading.

Please use our online compiler to post code in comments using C, C++, Java, Python, JavaScript, C#, PHP, and many more popular programming languages.

Like us? Refer us to your friends and help us grow. Happy coding :)



Subscribe
Notify of
guest
12 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Do NOT follow this link or you will be banned from the site!