🔎 CRUXEval Sample Explorer 🔎

CRUXEval is a benchmark complementary to HumanEval and MBPP measuring code reasoning, understanding, and execution capabilities!


   
def f(nums):
    count = len(nums)
    for i in range(count-1, 0, -2):
        nums.insert(i, nums.pop(0) + nums.pop(0))
    return nums
assert f([-5, 3, -2, -3, -1, 3, 5]) == [5, -2, 2, -5]
CRUXEval-I
assert f(??) == [5, -2, 2, -5]

CRUXEval-O
assert f([-5, 3, -2, -3, -1, 3, 5]) == ??