Esempio n. 1
0
        public void ReverseStr_1()
        {
            var solution = new _0541_ReverseStringII();
            var result   = solution.ReverseStr("abcdefg", 2);

            Assert.AreEqual("bacdfeg", result);
        }
Esempio n. 2
0
        public void ReverseStr_2()
        {
            var solution = new _0541_ReverseStringII();
            var result   = solution.ReverseStr("a", 2);

            Assert.AreEqual("a", result);
        }