LeetCode: Two Sum
Problem:
https://leetcode.com/problems/two-sum/
Code:
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
seen={}
for i, val in enumerate(nums):
complement = target - val
if complem...
is-power-of-two.hashnode.dev1 min read