New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Coding Question
AI Insights
Quick Summary
Compress an integer array into alternating RLE and BP string descriptors.
RLE encodes runs of 8+ identical values, while BP packs blocks of up to 8 distinct values.
Requires implementing bidirectional conversion between the numeric array and string list.
What This Tests
Stateful array traversal and index management
String parsing and formatting
Greedy decision-making for chunk partitioning
Bidirectional data transformation
Common Patterns
Greedy
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Stdout
-