Technical Discussion :: Data Structure

3 / 48

What is stack and queue?

Answer:

Stack is a sequential datastructure which will follow last in first out (LIFO) rules. The mainly operations of stack are : push pop peer empty and full.



Qeque is also a sequential datastructure which will work on First In First Out(FIFI) . It is the datastructure with restriction that the insertion will be performed from one end and deletion from the another end with help of front and rear. The mainly operations will be performed are : enque and deque operations .



We can implement both by using an array (i.e. static implementation ) and another is using linklist that is dynamic implementation.

Asked In :: WiproTCSVirtusaSyntel Inc.

Post Your Answer Here:


Rate This: +2 -0      +
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.