Ejemplos
Count three substitutions in the classic string example
Byte distance counts changed positions, not insertions or deletions.
Entrada
karolin
kathrinExpected answer
3- Delimitador
- Unidad
Byte- Tipo de entrada
Raw string
Find a one-bit change in a two-byte packet
FF versus FE changes one bit in the second byte.
Entrada
00ff|00feExpected answer
1- Delimitador
|- Unidad
Bit- Tipo de entrada
Hex
Compare every bit in opposite byte values
Two opposite bytes differ in all 16 bit positions.
Entrada
0000|ffffExpected answer
16- Delimitador
|- Unidad
Bit- Tipo de entrada
Hex
Count changed bytes in two IPv4-style headers
Only the final byte differs; this is a short synthetic header fragment.
Entrada
45000014|45000028Expected answer
1- Delimitador
|- Unidad
Byte- Tipo de entrada
Hex
Separate byte changes from bit changes in ASCII
ASCII A and a differ by the single 0x20 bit.
Entrada
A|aExpected answer
1- Delimitador
|- Unidad
Bit- Tipo de entrada
Raw string
Parámetros
| Parámetro | Valor predeterminado | Entrada y opciones |
|---|---|---|
| Delimitador | "\\n\\n" | Se admiten secuencias de escape como \n, \r y \t |
| Unidad | Byte | Byte, Bit |
| Tipo de entrada | Cadena cruda | Cadena cruda, Hex |