示例#1
0
        public void DiStringMatch_3()
        {
            var solution = new _0942_DIStringMatch();
            var result   = solution.DiStringMatch("DDI");

            AssertHelper.AssertArray(new int[] { 3, 2, 0, 1 }, result);
        }
示例#2
0
        public void DiStringMatch_1()
        {
            var solution = new _0942_DIStringMatch();
            var result   = solution.DiStringMatch("IDID");

            AssertHelper.AssertArray(new int[] { 0, 4, 1, 3, 2 }, result);
        }
示例#3
0
        public void DiStringMatch_2()
        {
            var solution = new _0942_DIStringMatch();
            var result   = solution.DiStringMatch("III");

            AssertHelper.AssertArray(new int[] { 0, 1, 2, 3 }, result);
        }