static void NotMain(String[] args)
        {
            Node n = Node.createLinkedList(new int[] { 1, 2, 3, 1, 1 });

            Console.WriteLine(isPalindrome(n));
            Console.Read();
        }
示例#2
0
        static void NotMain(String[] args)
        {
            Node l = Node.createLinkedList(new int[] { 3, 1, 2, 4, 5, 9, 7, 8, 6 });

            Node.printNodes(partition(9, l));
            Console.Read();
        }
示例#3
0
        static void NotMain(String[] args)
        {
            Node l = Node.createLinkedList(new int[] { 9, 8, 1, 7 });
            Node r = Node.createLinkedList(new int[] { 2, 9, 5 });

            Node.printNodes(addListsReverse(l, r));
            Console.Read();
        }
示例#4
0
        static void NotMain(String[] args)
        {
            Node t = Node.createLinkedList(new int[] { 0 });

            Node.printNodes(t);
            Console.WriteLine(kthToLast(1, t));
            Console.Read();
        }
示例#5
0
        static void NotMain(String[] args)
        {
            Node t = Node.createLinkedList(new int[] { 1, 2, 3, 4, 4, 2, 4, 1, 2, 4 });

            Node.printNodes(t);
            removeDuplicateNoStorage(t);
            Node.printNodes(t);
            Console.Read();
        }