Problem:
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
Example:
nums = [2, 7, 11, 15], target = 9
Output: [0, 1]
Explanation: 2 + 7 = 9 (indices 0 and 1)
Simple Solution (Python):
def twoSum(nums, target):
for i...