Firmware Buffer Splice judge misses valid zeros in nums1
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Observed behavior
In Firmware Buffer Splice, a Python solution that removes every zero from nums1 passes all five built-in tests.
With the same code, the custom case [[0, 2, 0], 2, [1], 1] fails. The result is [1, 2], but the expected result is [0, 1, 2].
Expected behavior
The built-in tests should reject solutions that discard a zero within the first m elements of nums1.
I’ll add this case to the built-in judge and verify that a correct in-place merge passes and the zero-dropping solution fails. Could you assign this issue to me?
Reproduction
-
Open Firmware Buffer Splice in Python 3 and paste this code:
class Solution: def spliceReadings(self, nums1: list[int], m: int, nums2: list[int], n: int) -> None: nums1[:] = sorted([x for x in nums1 if x != 0] + nums2[:n]) -
Click Run tests. All five built-in tests pass.
-
Open Add a case, enter
[[0, 2, 0], 2, [1], 1]as Input JSON and[0, 1, 2]as Expected JSON, then click Add case. -
Click Run tests again. The built-in tests still show 5/5, but the custom case fails with
[1, 2].
CodeTrial version
codetrial 0.1.0 (21c45b1)
Environment
OS: Windows
Browser: Chrome
Language: Python 3
Problem: Firmware Buffer Splice
REACTO step: Test
Sanitized evidence
Public data confirmation
- I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
- Lenguaje dominante
- Rust
- Estrellas
- 236
- Forks
- 153
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 187
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sysprog21/codetrial
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Unify Java harness validation error messagesPosiblemente ocupada @weichieh0204 la tomó hoy. Abierto
sysprog21/codetrial#872 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Inferred void class operations are never checked against the starter's return typePosiblemente ocupada @papaya0112 la tomó hoy. Abierto
sysprog21/codetrial#871 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwritePosiblemente ocupada @BOBOGUAGUA428 la tomó hoy. Abierto
sysprog21/codetrial#869 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de sysprog21/codetrial
Issues similares
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
eliasstravik/herdr-projects#1605 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
jlcodes99/cockpit-tools#3332 ·
Los mantenedores suelen responder en 3 días
-
Cognito: the email MFA code (EMAIL_OTP challenge after a password flow) has 8 digits; AWS delivers 6Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aws/aws-emulator#692 ·
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
pamburus/hl#1779 · 1 comentario ·
Los mantenedores suelen responder en 1 día