摘要: Stack is dedicated to function Local variables are store in stack Deallocated after function completes Heap is persisten Carbage Collections Go is a c 阅读全文
posted @ 2022-09-07 16:17 Zhentiw 阅读(9) 评论(0) 推荐(0) 编辑
摘要: New is alernate way to create a variable new() function create a variable and returns a pointer to the variable Variable is initialized to zero packag 阅读全文
posted @ 2022-09-07 15:06 Zhentiw 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Write a MinMaxStack class for a Min Max Stack. The class should support: Pushing and popping values on and off the stack. Peeking at the value at the 阅读全文
posted @ 2022-09-07 14:26 Zhentiw 阅读(25) 评论(0) 推荐(0) 编辑