コード例 #1
0
        public void MinSteps_1()
        {
            var solution = new _1347_MinimumNumberOfStepsToMakeTwoStringsAnagram();
            var result   = solution.MinSteps("bab", "aba");

            Assert.AreEqual(1, result);
        }
コード例 #2
0
        public void MinSteps_4()
        {
            var solution = new _1347_MinimumNumberOfStepsToMakeTwoStringsAnagram();
            var result   = solution.MinSteps("xxyyzz", "xxyyzz");

            Assert.AreEqual(0, result);
        }
コード例 #3
0
        public void MinSteps_5()
        {
            var solution = new _1347_MinimumNumberOfStepsToMakeTwoStringsAnagram();
            var result   = solution.MinSteps("friend", "family");

            Assert.AreEqual(4, result);
        }
コード例 #4
0
        public void MinSteps_2()
        {
            var solution = new _1347_MinimumNumberOfStepsToMakeTwoStringsAnagram();
            var result   = solution.MinSteps("leetcode", "practice");

            Assert.AreEqual(5, result);
        }