code generator implementation
This commit is contained in:
@@ -81,7 +81,8 @@ The shared memory structure is organized as follows:
|
||||
shared = {
|
||||
"problem": "Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.",
|
||||
"test_cases": [
|
||||
{"input": {"nums": [2,7,11,15], "target": 9}, "expected": [0,1]},
|
||||
{"name": "Basic case", "input": {"nums": [2,7,11,15], "target": 9}, "expected": [0,1]},
|
||||
{"name": "Different order", "input": {"nums": [3,2,4], "target": 6}, "expected": [1,2]},
|
||||
# ... more test cases
|
||||
],
|
||||
"function_code": "def run_code(nums, target): ...",
|
||||
|
||||
Reference in New Issue
Block a user