โ† Microsoft questions

Compress and decompress array of numbers in range 1-255

Filed under Microsoft

The question

Design a class to compress an array of n integers where values range between 1 and 255 to save memory, and provide a method to restore the original array.

No write-up yet. Related questions below have one.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.