Sha256: 99e48f0c6b5b43107a3e333b52025ea6b7b491473745b02bd66dab5fc9db6397
Contents?: true
Size: 492 Bytes
Versions: 69
Compression:
Stored size: 492 Bytes
Contents
defmodule RunLengthEncoder do @doc """ Generates a string where consecutive elements are represented as a data value and count. "AABBBCCCC" => "2A3B4C" For this example, assume all input are strings, that are all uppercase letters. It should also be able to reconstruct the data into its original form. "2A3B4C" => "AABBBCCCC" """ @spec encode(String.t()) :: String.t() def encode(string) do end @spec decode(String.t()) :: String.t() def decode(string) do end end
Version data entries
69 entries across 69 versions & 1 rubygems