Publicidad

Carácter Repetido

Un carácter se tecleó accidentalmente dos veces seguidas.

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'

  1. Verificar longitudes: original tiene 5 caracteres, dado tiene 6
  2. Comparar posición 1: 'H' = 'H'
  3. Comparar posición 2: 'E' = 'E'
  4. Comparar posición 3: 'L' = 'L'
  5. Comparar posición 4: 'L' = 'L'
  6. Comparar posición 5: 'O' vs 'L' - 'L' extra encontrada
  7. 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'

Orientación para practicar

Detección de Errores

Publicidad