Aprender
Un carácter se tecleó accidentalmente dos veces seguidas.
Repeated character errors occur when a typist accidentally presses a key twice, creating an unwanted duplicate character. This is common with fast typing or when a key is slightly sticky. The result is a string that is one character longer than intended.
Original character at position N is duplicated: ABC → ABBC
- 12345 → 123345 (3 repeated)
- HELLO → HELLLO (L repeated)
- AB-1234 → AB-12234 (2 repeated)
Cómo reconocerlo
- String is one character longer than original
- Look for adjacent identical characters
- One character appears twice in sequence
Errores comunes
- Confusing with addition of different character
- Missing the duplicate in longer strings
- Not noticing legitimate double letters
Resolución paso a paso
Encuentre el error: Original 'HELLO' vs Dado 'HELLLO'
- Verificar longitudes: original tiene 5 caracteres, dado tiene 6
- Comparar posición 1: 'H' = 'H'
- Comparar posición 2: 'E' = 'E'
- Comparar posición 3: 'L' = 'L'
- Comparar posición 4: 'L' = 'L'
- Comparar posición 5: 'O' vs 'L' - 'L' extra encontrada
- La letra 'L' se tecleó dos veces en la posición 4
Respuesta: Error de carácter repetido: 'L' tecleada dos veces, creando 'LLL' en vez de 'LL'