mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-19 22:14:28 +01:00
Move Auto-GPT to autogpts/autogpt
This commit is contained in:
13
autogpts/autogpt/tests/challenges/debug_code/data/code.py
Normal file
13
autogpts/autogpt/tests/challenges/debug_code/data/code.py
Normal 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
|
||||
Reference in New Issue
Block a user