测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 395 字符 |
模型生成的代码 (395 字符)
def split_Arr(arr, n):
"""
Split a list at the nth element (0-indexed) and move the first part to the end.
Effectively rotates the list left by n positions.
"""
# Handle negative n or n > len(arr) if needed, but according to problem, n is valid index.
# Use slicing: arr[n:] gives elements from index n to end; arr[:n] gives first n elements.
return arr[n:] + arr[:n]
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试