Find two numbers in a list that add up to a target. Print their indices (-based).
Input: Target on first line, then space-separated numbers
Output: Two indices whose values sum to target
Example:
- Target: , Numbers:
- Output: (because )
This is a classic interview problem. Think about how a dictionary can help you find complements in time.