测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 323 字符 |
模型生成的代码 (323 字符)
def move_num(s: str) -> str:
"""
Moves all digit characters to the end of the string while preserving
the relative order of both the non-digit and digit sequences.
"""
non_digits = [ch for ch in s if not ch.isdigit()]
digits = [ch for ch in s if ch.isdigit()]
return ''.join(non_digits + digits)
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试