tracks/go/exercises/variable-length-quantity/README.md in trackler-2.2.1.103 vs tracks/go/exercises/variable-length-quantity/README.md in trackler-2.2.1.104
- old
+ new
@@ -3,21 +3,20 @@
Implement variable length quantity encoding and decoding.
The goal of this exercise is to implement [VLQ](https://en.wikipedia.org/wiki/Variable-length_quantity) encoding/decoding.
In short, the goal of this encoding is to encode integer values in a way that would save bytes.
-Only the first 7 bits of each byte is significant (right-justified; sort of like an ASCII byte).
-So, if you have a 32-bit value, you have to unpack it into a series of 7-bit bytes.
-Of course, you will have a variable number of bytes depending upon your integer.
+Only the first 7 bits of each byte is significant (right-justified; sort of like an ASCII byte).
+So, if you have a 32-bit value, you have to unpack it into a series of 7-bit bytes.
+Of course, you will have a variable number of bytes depending upon your integer.
To indicate which is the last byte of the series, you leave bit #7 clear.
-In all of the preceding bytes, you set bit #7.
+In all of the preceding bytes, you set bit #7.
-So, if an integer is between `0-127`, it can be represented as one byte.
+So, if an integer is between `0-127`, it can be represented as one byte.
Although VLQ can deal with numbers of arbitrary sizes, for this exercise we will restrict ourselves to only numbers that fit in a 32-bit unsigned integer.
Here are examples of integers as 32-bit values, and the variable length quantities that they translate to:
-
-```
+```text
NUMBER VARIABLE QUANTITY
00000000 00
00000040 40
0000007F 7F
00000080 81 00