We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
← All tracks
0 / 4
Containers, Strings, Algorithms
C++The standard library read as a set of cost promises rather than a menu of names. Growth, borrowing, one lookup instead of two, and the loop that stops having bugs once it has a name.
This track is written for C++, which isn't the mode you're browsing in.
0
/ 5 solved
- 1. Not solved yet. The vector that moves everything, repeatedly
- 2. Not solved yet. Reading text you do not own
- 3. Not solved yet. The lookup that writes
- 4. Not solved yet. The loop stops having bugs once it has a name
- 5. Not solved yet. Erasing while you walk
Check yourself
4 questions · one attempt eachThese do not count toward finishing the track. They are here to catch the things that are easy to read past.
What is the difference between reserve(5) and resize(5) on an empty vector?
std::vector<int> a; a.reserve(5);
std::vector<int> b; b.resize(5);
Question 1 of 4