Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
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
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Stdout
-