Solve Two Sum in C++ using std::unordered_map<int, int> to find pair indices matching target.
std::unordered_map<int, int>
Indices: 0 and 1 [✓] Unordered map verified (Time: 0.008s, Memory: 2.3 MB)