Whenever you're ready, walk me through how you'd approach this.
Is the C++ STL map a hash map with O(1) insertion complexity? Explain the real complexity and why.