Leetcode 剑指 Offer 09 用两个栈实现队列

这道题考察的是栈的使用,两个栈能够实现一个FIFO 具体解题方法参考剑指offer 09web P.S. free能够把malloc分配的内存排空,在本题实现过程当中须要先把CQueue中的stakebottom1, stakebottom2分配的内存先排空再排空CQueue.svg 内存和时间消耗以及源代码以下: spa typedef struct { int* stakebot
相关文章
相关标签/搜索