Stack can be described as a pointer. Explain.
Answer Posted / kavitha
stack is last in first out property,so lastly pushed
element is poped out first.so when a pointer is pointed it
always points out the head pointer i.e the top element in
the stack.,so stack is also described as pointer.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Differentiate bfs and dfs?
Given an unsorted linked list, and without using a temporary buffer, write a method that will delete any duplicates from the linked list?
How are elements stored in hashset?
How to create your own data structure in java?
What is the height of binary tree?
Does arraylist maintain insertion order?
What is dynamic array how is it created?
Define the tree data structure.
Why quicksort is called quick?
Can arraylist store objects?
Explain implementation of deletion from a binary tree.
Which is the parent class of abstractqueue class?
What is difference between concurrenthashmap and hashtable?
What does args stand for?
What is stack in geography?