摘要:
/** * 数组实现栈和队列 */public class ArrayToQueueAndStack { public static class MyStack<T> { public Object[] arr; public int size; public int limit; public M 阅读全文
摘要:
/** * 双向链表实现栈和队列 */public class DoubleEndsNodeToQueueAndStack { public static class MyQueue<T> { public DoubleEndsNode<T> nodes; public MyQueue() { no 阅读全文
摘要:
/** * 在单向链表中删除指定的key */public class RemoveSpecKeyFromNode { public static class Node<T> { public T value; public Node next; public Node(T node) { this 阅读全文
摘要:
/** * 双向链表反转 */public class RevertDoubleNode { public static class DoubleNode<T> { public T value; public DoubleNode pre; public DoubleNode next; publ 阅读全文
摘要:
/** * 单向链表反转 */public class RevertLinkedNode { public static class Node<T> { public T value; public Node next; public Node(T node) { this.value = node 阅读全文