
Notifications
Clear all
Differentiate between stack and queue data structure?
0
02/05/2023 4:50 am
Topic starter
Differentiate between stack and queue data structure?
Answer
Add a comment
Add a comment
1 Answer
0
03/05/2023 3:29 pm
A stack follows a LIFO (Last In First Out) order, whereas a queue follows a FIFO (First In First Out) order for storing the elements. A stack uses one end known as a top for insertion and deletion whereas a queue uses two ends front and rear for insertion and deletion.
Add a comment
Add a comment
Forum Information
- 22 Forums
- 1,969 Topics
- 5,308 Posts
- 1 Online
- 1,283 Members
Our newest member: Thomasnat
Latest Post: Space bug using " & n b s p ; "
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed