Пример #1
0
    public void Test1()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("PAYPALISHIRING", 3);

        Assert.Equal("PAHNAPLSIIGYIR", result);
    }
Пример #2
0
    public void Test4()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("AB", 1);

        Assert.Equal("AB", result);
    }
Пример #3
0
    public void Test7()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("ABCD", 2);

        Assert.Equal("ACBD", result);
    }
Пример #4
0
    public void Test2()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("PAYPALISHIRING", 4);

        Assert.Equal("PINALSIGYAHRPI", result);
    }