Difference between stack and queue
Basic differences between these both and how to implement them in .net
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sonu GuptaRank #1,261 · 1.4K reputationPosted Oct 23, 2019, 10:09 AM EDT
vijay nelsonRank #3,537 · 411 reputationPosted Oct 23, 2019, 9:41 AM EDT
Stack -Last In First Out
Queue -First In First Out
here is an example to implement in .net
https://www.c-sharpcorner.com/UploadFile/219d4d/queue-collection-and-stack-collection-class-in-C-Sharp/
Sujay AnandRank #1,857 · 800 reputationPosted Oct 31, 2019, 2:51 AM EDT
Sanjay gautam88 reputationPosted Oct 23, 2019, 10:47 PM EDT
Dipa MehtaRank #361 · 6.9K reputationPosted Oct 23, 2019, 9:09 PM EDT
Arun Kumar TiwariRank #3,157 · 454 reputationPosted Oct 24, 2019, 2:04 AM EDT