随笔分类 - 数据结构与算法
摘要:转自Reversing a Linked List in Java, recursivelyThere's code in one reply that spells it out, but you might find it easier to start from the bottom up, ...
阅读全文
摘要:转自两个栈实现队列 两个队列实现栈为说明思想,假设队列、栈都很大,不会出现满的情况。1. 两个栈实现队列//前提已知:struct Stack{ int top; //栈顶指针 int stacksize;//栈的大小 int *s; //栈底指针};void I...
阅读全文

浙公网安备 33010602011771号