CP-1.303 - C++ map, set, iterator, and stringstream

preview_player
Показать описание


This is a simple "reverse a map" question which I will do using C++, so you can see how we work with maps and sets in C++. Most importantly, I started using iterators, which is something we use a lot in C++.

I also talked about stringstream which I use to tokenize a line, i.e. I have a string containing spaces in it, and I want to extract the individual strings. It'll make sense if you look at the video.

Video Sections:
0:00 - Problem description
2:54 - Using stringstream
6:56 - Using maps and sets in C++
9:15 - Traversing the map and set using range-based loops
13:11 - Traversing the map and set using iterators

Please note that all views and opinions expressed in this video are my own and does not reflect that of Kattis or any other person/organisation mentioned in the video.
Рекомендации по теме
Комментарии
Автор

great video ! thank you for showing both the pure iterator approach and the auto keyword approach.

jojofedouchi