Пример #1
0
        public void MinimumSwap_1()
        {
            var solution = new _1247_MinimumSwapsToMakeStringsEqual();
            var result   = solution.MinimumSwap("xx", "yy");

            Assert.AreEqual(1, result);
        }
Пример #2
0
        public void MinimumSwap_4()
        {
            var solution = new _1247_MinimumSwapsToMakeStringsEqual();
            var result   = solution.MinimumSwap("xxyyxyxyxx", "xyyxyxxxyx");

            Assert.AreEqual(4, result);
        }