Two Sum
EasyProblem Statement
Find two numbers in an array that add up to a specific target value. Return the indices of the two numbers.
Constraints
- Each input has exactly one solution
- You may not use the same element twice
- Time Complexity: O(N)
- Space Complexity: O(N)
Solution