测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 357 字符 |
模型生成的代码 (357 字符)
def remove_odd(s: str) -> str:
"""
Removes characters at odd positions (1-indexed) from the string.
For example, 'python' -> 'yhn' because positions 1,3,5 (p,t,o) are removed.
"""
# Slicing with start=1 and step=2 keeps characters at indices 1,3,5,...
# which correspond to positions 2,4,6,... in 1-based counting.
return s[1::2]
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试