Apprendre
Une séquence de 3 caractères adjacents ou plus est inversée.
Reversal errors occur when a portion of the string (typically 3-4 characters) is written in reverse order. This can happen when transcribing data from memory or when the eye jumps back while reading. Unlike simple transposition which swaps just two characters, reversal affects a longer sequence.
Substring ABC becomes CBA within the string
- 123456 → 132456 (123 reversed to 321, shown as 132)
- ABCDEF → ACBDEF (BCD reversed)
- AB-1234 → AB-3214 (1234 partially reversed)
Comment le reconnaître
- Three or more characters appear in reverse order
- Length remains the same
- All original characters are present
Erreurs fréquentes
- Confusing with multiple transpositions
- Not recognizing partial reversals
- Missing the reversal pattern in mixed data
Résolution étape par étape
Trouvez l'erreur : Original 'AB-1234' vs Donné 'AB-3214'
- Comparer le préfixe : 'AB-' = 'AB-'
- Comparer position 4 : '1' vs '3' - différence
- Comparer position 5 : '2' = '2'
- Comparer position 6 : '3' vs '1' - différence
- Comparer position 7 : '4' = '4'
- Motif identifié : '123' inversé en '321'
- C'est une inversion de 3 caractères, pas une simple transposition
Réponse: Erreur d'inversion : séquence '123' inversée en '321' (positions 4-6)