随笔分类 -  数据结构与算法

摘要:转自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, ... 阅读全文
posted @ 2014-10-31 22:23 Noble_ 阅读(367) 评论(0) 推荐(0)
摘要:转自两个栈实现队列 两个队列实现栈为说明思想,假设队列、栈都很大,不会出现满的情况。1. 两个栈实现队列//前提已知:struct Stack{ int top; //栈顶指针 int stacksize;//栈的大小 int *s; //栈底指针};void I... 阅读全文
posted @ 2014-09-30 18:07 Noble_ 阅读(254) 评论(0) 推荐(0)