コード例 #1
0
        public void MaxPower_1()
        {
            var solution = new _1446_ConsecutiveCharacters();
            var result   = solution.MaxPower("leetcode");

            Assert.AreEqual(2, result);
        }
コード例 #2
0
        public void MaxPower_5()
        {
            var solution = new _1446_ConsecutiveCharacters();
            var result   = solution.MaxPower("tourist");

            Assert.AreEqual(1, result);
        }
コード例 #3
0
        public void MaxPower_3()
        {
            var solution = new _1446_ConsecutiveCharacters();
            var result   = solution.MaxPower("triplepillooooow");

            Assert.AreEqual(5, result);
        }
コード例 #4
0
        public void MaxPower_4()
        {
            var solution = new _1446_ConsecutiveCharacters();
            var result   = solution.MaxPower("hooraaaaaaaaaaay");

            Assert.AreEqual(11, result);
        }
コード例 #5
0
        public void MaxPower_2()
        {
            var solution = new _1446_ConsecutiveCharacters();
            var result   = solution.MaxPower("abbcccddddeeeeedcba");

            Assert.AreEqual(5, result);
        }