What are the differences between a stack and a heap, name the different methods that a stack is comprised of, and code a basic algorithm for the stack's method.
Anonymous
Stack - a last in, first out (LIFO) data structure. Heap- heap is a tree-based data structure. Some methods a stack is comprised of are push and pop. For coding them see: http://en.wikipedia.org/wiki/Stack_(data_structure)
Check out your Company Bowl for anonymous work chats.