Jane Street logoJane Street
CodingMembers

Arithmetic Coding: Encode and Decode a Message

Members only

Implement a lossless compression scheme that turns an entire message into a single fraction. It checks whether you can reason about an invariant over a shrinking range, deal with numeric precision, and make encoding and decoding exact inverses.

SWE
MLE
medium
compression
math
probability
algorithm
Frequency
Single report
Last asked
—
Stage
phone-screen

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 4 common pitfalls
  • 6 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...