Two Sum

Python

 1class Solution:
 2    def twoSum(self, nums, target):
 3        """
 4        :type nums: List[int]
 5        :type target: int
 6        :rtype: List[int]
 7        """
 8        for i in range(0, len(nums)):
 9            for j in range(i+1, len(nums)):
10                if (nums[j] == target - nums[i]):
11                    return [i, j]