摘要:
最近学习c++看视频时,老师时常提到栈区堆区,搞不清楚,只能泪目,毕竟爱过。。。因此,接下来对此做些整理,方便回顾。(老师说:这个简化模型仅用于初学者示意,与实际模型并不完全一致) 1.stack(栈) 编译器自动分配释放 2.Heap(堆) 一般由程序员分配释放,程序运行时用malloc或new申 阅读全文
posted @ 2016-03-13 15:13
kuotian
阅读(285)
评论(0)
推荐(0)
摘要:
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s 阅读全文
posted @ 2016-03-13 12:33
kuotian
阅读(388)
评论(0)
推荐(0)
浙公网安备 33010602011771号