What's the relationship between time complexity and complement?
I do not understand what complement means to be used.
I do not understand the sentence below.
Approach #2 (Two-pass Hash Table) [Accepted]
To improve our run time complexity, we need a more efficient way to check if the complement exists in the array. If the complement exists, we need to look up its index. What is the best way to maintain a mapping of each element in the array to its index? A hash table.