Apprendre
Un caractère a été accidentellement tapé deux fois de suite.
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)
Comment le reconnaître
- String is one character longer than original
- Look for adjacent identical characters
- One character appears twice in sequence
Erreurs fréquentes
- Confusing with addition of different character
- Missing the duplicate in longer strings
- Not noticing legitimate double letters
Résolution étape par étape
Trouvez l'erreur : Original 'HELLO' vs Donné 'HELLLO'
- Vérifier les longueurs : original a 5 caractères, donné a 6
- Comparer position 1 : 'H' = 'H'
- Comparer position 2 : 'E' = 'E'
- Comparer position 3 : 'L' = 'L'
- Comparer position 4 : 'L' = 'L'
- Comparer position 5 : 'O' vs 'L' - 'L' en trop
- La lettre 'L' a été tapée deux fois à la position 4
Réponse: Erreur de caractère répété : 'L' tapé deux fois, créant 'LLL' au lieu de 'LL'