REPOSITORY CODING · HARD
Canonical Huffman codes order equal lengths by unsigned byte value, and bit decoding reads most-significant bits first with exact zero padding
Canonical Huffman codes order equal lengths by unsigned byte value, and bit decoding reads most-significant bits first with exact zero padding. Trace the native model, algorithm services, repository snapshot and HTTP preview. Repair the incident while preserving the other contracts. All explicit fixtures and mandatory regression groups are available with bash test/run.sh.
compressionByte compression transform laboratory
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
Angular · 85 minute session
- Sort byte rotations lexicographically with stable original-index ties and report the correct BWT primary row.
- LF mapping uses occurrence ranks before the current symbol, preserving repeated byte identities in inverse BWT.
- Move-to-front updates its alphabet after every symbol; decoding must reconstruct the BWT last column.
- Flush a final zero run and expand every zero marker to its full run length. Zero-run coding must round-trip moved indices.
- Canonical Huffman codes order equal lengths by unsigned byte value, and bit decoding reads most-significant bits first with exact zero padding.
- At most 48 bytes and sixteen distinct byte values. BWT uses cyclic rotations without a sentinel; primary row disambiguates inversion. Huffman singleton alphabets use one zero bit per symbol. This is a bounded offline codec, not a file compressor.
JavaScript · 85 minute session
- Sort byte rotations lexicographically with stable original-index ties and report the correct BWT primary row.
- LF mapping uses occurrence ranks before the current symbol, preserving repeated byte identities in inverse BWT.
- Move-to-front updates its alphabet after every symbol; decoding must reconstruct the BWT last column.
- Flush a final zero run and expand every zero marker to its full run length. Zero-run coding must round-trip moved indices.
- Canonical Huffman codes order equal lengths by unsigned byte value, and bit decoding reads most-significant bits first with exact zero padding.
- At most 48 bytes and sixteen distinct byte values. BWT uses cyclic rotations without a sentinel; primary row disambiguates inversion. Huffman singleton alphabets use one zero bit per symbol. This is a bounded offline codec, not a file compressor.