Heap:

Stack: