code generator implementation

This commit is contained in:
zachary62
2025-05-23 01:52:12 -04:00
parent ac4381cae9
commit a8dadfa946
5 changed files with 500 additions and 1 deletions
@@ -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): ...",