Solving Everyday Problems
Learn some useful algorithms to deal with different programming scenarios efficiently.
We'll cover the following...
We'll cover the following...
We will list some common scenarios and useful algorithms to give you a taste of the algorithms available in the standard library. There are many algorithms in the library, but we will only present a few of them in this lesson.
Iterating over a sequence
It’s useful to have a short helper function that can print the elements of a sequence. The following generic function works with any container that holds elements that can be printed to an output stream using operator<<():