2 ms·
Prefer at to [] is standard where I write C++. map is not standard because vector is almost always much faster random access in the real world (that is n is no
by bluGill 3y ago
Prefer at to [] is standard where I write C++. map is not standard because vector is almost always much faster random access in the real world (that is n is normally small enough that a linear search is faster than a binary search because of caching)