Compression Interview Questions
10 interview questions in our bank cover Compression, most of them Coding Questions. They average 2.8/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Compression: Affirm, Goldman Sachs, Intuit, Databricks, NVIDIA, and 5 more.
Practice these on the problems board →Companies that ask about Compression
Question mix
- Coding Questions10
Difficulty
- 2/5 — easy3
- 3/5 — medium6
- 4/5 — hard1
Questions tagged Compression
String Compression and Decompression
3/5Write a matching pair of routines that shorten a string by describing its runs and then restore the original exactly. This Affirm question is specified carefully: if the compressed form is not actually shorter you must return the input untouched, which rules out the naive always-encode approach. You will parse multi-digit run lengths on the way back, keep the two routines exact inverses where it matters, and cover inputs that compress to nothing useful. The full problem and the model solution require a subscription.
Coding QuestionsAffirmEncode Repeated Characters with Counts
3/5A coding question on shortening a list of characters by replacing each group of repeats with the character and how many times it occurs, including counts of ten or more.
Coding QuestionsGoldman SachsLook-and-Say Sequence
2/5Delve into run-length encoding patterns with this sequence generation puzzle reported during Intuit screening interviews. This task tests your capability to transform strings iteratively by counting consecutive identical digits and building subsequent terms according to established mathematical progression rules. Unlock the complete problem specification, iterative strategies, and clean reference solution by purchasing a subscription.
Coding QuestionsIntuitRLE + Bit-Packing Encoder with Lazy Decoder
3/5A coding question about storing a sequence of signed 64-bit integers compactly and reading it back lazily. It tests a precisely specified output format, negative numbers, extreme values and the choice between two storage layouts per block.
Coding QuestionsDatabricksAlphabet Count Decoder
2/5A coding question about decoding a compact numeric code for lowercase letters, where some letters carry a repeat count, and reporting how often each letter of the alphabet occurs.
Coding QuestionsNVIDIAHuffman-Style Binary Encode / Decode
4/5Master data compression techniques by developing a compression and decompression utility inspired by Huffman encoding, previously featured in interviews at Two Sigma. This challenge evaluates your ability to build hierarchical frequency structures and translate textual data into compact bit streams while adhering to precise rules. Candidates must carefully handle tree construction logic and byte manipulations to successfully pass the evaluation. Access the complete problem description and an optimized reference solution with a paid subscription.
Coding QuestionsTwo SigmaRegenerate Strings from Run-Length Digit Encoding
3/5This intriguing string manipulation puzzle, reported from Pinterest interviews, explores the reverse engineering of run-length encoded data representations. Given a decoded sequence, candidates must deduce all possible numerical input strings that could have generated the result through standard compression logic. The task evaluates your combinatorial reasoning, parsing accuracy, and depth-first search capabilities in a string-processing context. Viewing the complete problem details, edge cases, and expert solution requires an active subscription.
Coding QuestionsPinterestRun-Length Encoded String: Find by Index and Range Max
3/5A coding question on querying a compressed character sequence by position and by range while never expanding it. It focuses on index arithmetic over cumulative counts and careful boundary handling.
Coding QuestionsWaymoCompress a text editor operation stream into insert/delete/skip operations
3/5Featured in Replit interview loops, this problem asks you to take a sequence of low-level text editing actions and compress them into a streamlined set of higher-level instructions. The challenge tests your proficiency in string manipulation, state tracking, and optimization algorithms under cursor boundary conditions. Unlock the full problem statement, test cases, and complete solution code by subscribing today.
Coding QuestionsReplitLook-and-Say Next Sequence
2/5Generate the next term of a self-describing digit sequence by encoding runs of equal digits. It tests string scanning, run boundaries and treating numeric input as text.
Coding QuestionsCisco
Studied alongside
Compression interview FAQ
- How many Compression interview questions are there?
- 10 reported questions, mostly Coding Questions.
- Which companies ask Compression questions?
- Affirm (1), Goldman Sachs (1), Intuit (1), Databricks (1), NVIDIA (1), Two Sigma (1), Pinterest (1), Waymo (1).
- How hard are Compression questions?
- They average 2.8 out of 5: 3 at 2/5, 6 at 3/5, 1 at 4/5.