Back to problems

String Encoding / Decoding Variants

Algorithm · NVIDIA · Easy

Requirements Variant A: String-List Encoding and Decoding Input: Combine the entries into one string by placing each item's character count before #: Create a decoder that reconstructs precisely the original array of strings. Variant B: Letter-Frequency Decoder For a compressed value like: Interpret numeric codes as letters under these rules: 1 represents a, 2 represents b, continuing through 9 for i. 10# represents j, continuing through 26# for z. (k) indicates that the…

Checking your access…