Skip to content

8.3 8 Create Your Own Encoding Codehs Answers Portable Site

Since the specific instructions for "8.3.8" can vary depending on the exact version of the Course Catalog (Intro to CS, AP CSA, etc.), the most common assignment for this unit is creating a custom string encoding function.

As they continued to work on their encoding project, Max and Emma realized that they had stumbled upon something much bigger than just a school assignment. They had created a secret language, one that only they could understand. 8.3 8 create your own encoding codehs answers

6) Custom compact encoding (Base36)

  • Encoding rule: Treat text as a base-256 number (bytes), convert to base36 to shorten numeric length; include length header or use a delimiter to ensure decodeability.
  • Example (conceptual): "HI" → bytes [72,73] → big integer → base36 → "1FJ..." (implementation detail depends on language)
  • Decoding rule: Convert base36 back to integer, split into bytes, map to ASCII.

For CodeHS 8.3.8, the simplest yet “custom” method is to use a shift cipher relative to the ASCII code, but explain it as your own invention. The teacher wants to see that you can map characters to unique integers and back. Since the specific instructions for "8