Algorithm · Waymo · Easy
You are handed a sequence of bytes. Render it as a hexadecimal dump spread over several lines, where each line also shows an ASCII preview of its bytes. Break the bytes into consecutive rows of 16 bytes each. Every row is made of three parts: The offset: the position of the row's first byte, written as 8 lowercase hexadecimal digits and left-padded with zeroes. The hex part: every byte in the row written as two lowercase hexadecimal digits, with a single space between…