problem-specifications icon indicating copy to clipboard operation
problem-specifications copied to clipboard

Variable Length Quantity could do with a more detailed example table

Open Gautzilla opened this issue 2 years ago • 0 comments

I think the example table with only hexadecimal input and output values can be a little confusing.

On the wikipedia VLQ page, the array details the binary input, the binary output and the hexadecimal output to make the conversion clearer.

Shouldn't the exercise page also specify these steps? I would suggest adding columns to the table and putting them in the following order:

hexadecimal input | binary input | binary output | hexadecimal output

and emphasize the n°7 bit of each output byte (which is set to 0 in the last byte and set to 1 in the preceding bytes) by making it bold.

Gautzilla avatar Apr 28 '22 07:04 Gautzilla