Algorithm

@1:倒序打印一个单链表:

递归实现,先递归再打印就变成倒序打印了。

public static <T> void reverseRead1(SLNode<T> node) {
    if (node != null) {
        reverseRead1(node.getNext());
        System.out.print(node.getValue() + "	");
    }
}

参考文章:

15道简单算法题http://www.cnblogs.com/hlxs/archive/2014/06/06/3772333.html

原文地址:https://www.cnblogs.com/lxw0109/p/Algorithm.html