Two Sum
EasyArrayHASH_TABLETWO_POINTERS
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
> You must not use the same element twice.
> You may return the answer in any order.
---
## ✨ Example
### 🔸 Input:
nums = [2, 7, 11, 15], target = 9;
### 🔸 Expected Output:
`
[0,1]
Examples
Example 1
Input: [2,7,11,15],9
Output: [0,1]
Example 2
Input: [50,75,25,100],125
Output: [0,1]