Text Compression V2

A challenge by MeWhenI avatar MeWhenI

Description

For this challenge, you will write a program which can compress text, and also decompress its own compression scheme.

Your program will first receive the decompressed text, a capital “D” followed by 1 kB (1000 B) of space separated lowercased words from the first 50 entries in the Byte Heist word list. It should compress the text with a factor of at least 2:1; in other words, its output may be no more than 500 B.

Your program will then receive a capital “C” followed by its own compressed text, and should output the original decompressed text.

Leaderboard

Author Score
#1 Mukundan314 avatar Mukundan314 62
#2 ovs-code avatar ovs-code 113
#3 EroticShiveringKingBanana avatar EroticShiveringKingBanana 121
#3 hallvabo avatar hallvabo 121
#5 AlephSquirrel avatar AlephSquirrel 124
#6 MeWhenI avatar MeWhenI 327
#7 albanian-laundromat avatar albanian-laundromat 331
You must be logged in to submit a solution.