Ejemplo n.º 1
0
        public string Solve(string[] input)
        {
            string message = string.Join("", input);
            var    reader  = new RepetitiveExplosionCounter();
            var    len     = reader.DecompressedLength(message);

            return(len.ToString());
        }
        public void MessageWithMarkersIsDecompressed(string message, int decompressedLength)
        {
            var reader = new RepetitiveExplosionCounter();

            Assert.Equal(decompressedLength, reader.DecompressedLength(message));
        }