Paste Search Dynamic
Recent pastes
Solution object
  1. class Solution(object):
  2.     def twoSum(self, nums, target):
  3.         arr = {}
  4.         for i,n in enumerate(num):
  5.                 result = target - n
  6.                 if result in arr:
  7.                         return[arr[result],i]
  8.                         arr[n] = i
  9.                         return {arr}
Parsed in 0.001 seconds