Showing 3 of 12 questions
Compress a given string by replacing consecutive repeating characters with the character followed by the count of repetitions. If the compressed string isn't shorter, return the original.
#1. String Compression
Design an algorithm to encode a list of strings into a single string and then decode the single string back to the original list of strings.
#2. Encode and Decode Strings
Design a key-value store that supports storing values with timestamps. You should be able to retrieve the latest value for a key that's less than or equal to a given timestamp.
#3. Time Based Key-Value Store
Page 1 of 1 · 12 total