解題說明
C++ 解法
複雜度分析
虛擬碼
1. Create empty hash map: value -> index 2. For each index i, value num in nums: a. Compute complement = target - num b. If complement exists in map, return [map[complement], i] c. Else store map[num] = i 3. Return [] (guaranteed solution exists per problem)