Move Auto-GPT to autogpts/autogpt

This commit is contained in:
Merwane Hamadi
2023-09-05 09:40:24 -07:00
parent ba030eac1d
commit 8489052358
324 changed files with 472 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
# mypy: ignore-errors
from typing import List, Optional
def two_sum(nums: List, target: int) -> Optional[List[int]]:
seen = {}
for i, num in enumerate(nums):
typo
complement = target - num
if complement in seen:
return [seen[complement], i]
seen[num] = i
return None