摘要: /** * 问题:反转单向链表 * * 要求: * 如果链表长度为 N,时间复杂度为O(N),额外的空间复杂度为O(1)。 * * @author 雪瞳 * */ * 代码 public class Node<T>{ public T value; public Node next; public 阅读全文
posted @ 2020-03-18 13:05 雪瞳 阅读(98) 评论(0) 推荐(0) 编辑